URI: 
       tMake unknown_button insensitive when it isn't needed - transliterate - Transliteration engine
  HTML git clone git://lumidify.org/transliterate.git
   DIR Log
   DIR Files
   DIR Refs
   DIR README
   DIR LICENSE
       ---
   DIR commit 8e203f4dca8ba5b066ec34e0aa6a84350ac59135
   DIR parent a0dfda074fc11ce505d269ae27bee6e1c4ca29e0
  HTML Author: lumidify <nobody@lumidify.org>
       Date:   Tue, 14 Apr 2020 12:56:08 +0200
       
       Make unknown_button insensitive when it isn't needed
       
       Diffstat:
         M transliterate.pl                    |       4 +++-
       
       1 file changed, 3 insertions(+), 1 deletion(-)
       ---
   DIR diff --git a/transliterate.pl b/transliterate.pl
       t@@ -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();
       t@@ -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
       t@@ -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:");
                                }