transliterate

Transliteration engine
git clone git://lumidify.org/transliterate.git
Log | Files | Refs | README | LICENSE

commit 8e203f4dca8ba5b066ec34e0aa6a84350ac59135
parent a0dfda074fc11ce505d269ae27bee6e1c4ca29e0
Author: lumidify <nobody@lumidify.org>
Date:   Tue, 14 Apr 2020 12:56:08 +0200

Make unknown_button insensitive when it isn't needed

Diffstat:
Mtransliterate.pl | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/transliterate.pl b/transliterate.pl @@ -378,7 +378,7 @@ sub prompt_choose_word { }; # fill the text buffer with the context and current word, highlighting the word - # if $cur_replacement is after the end of @replacements, don't highlight anythiing + # if $cur_replacement is after the end of @replacements, don't highlight anything # (this happens when all words have been replaced and the user only needs to accept the changes) my $fill_text_buffer = sub { my $start = $buffer->get_start_iter(); @@ -400,6 +400,7 @@ sub prompt_choose_word { $accept->grab_focus; $wordlabel->set_text(""); $skip_button->set_sensitive(FALSE); + $unknown_button->set_sensitive(FALSE); }; my $fill_button_vbox; # forward-declaration so it can be used here already @@ -457,6 +458,7 @@ sub prompt_choose_word { $fill_text_buffer->(); $accept->hide; $skip_button->set_sensitive(TRUE); + $unknown_button->set_sensitive(TRUE); my $word = $replacements[$cur_replacement]->[1]; $wordlabel->set_text("Word \"$word\" has multiple replacement options:"); }