[evolution] I#1123 - Composer: Spell check menu hides "Add to Dictionary" after open



commit 32ca22910e1e0c44312a6b70be0fbeea7e4ff630
Author: Milan Crha <mcrha redhat com>
Date:   Tue Sep 29 17:47:11 2020 +0200

    I#1123 - Composer: Spell check menu hides "Add to Dictionary" after open
    
    Closes https://gitlab.gnome.org/GNOME/evolution/-/issues/1123

 src/e-util/e-html-editor-actions.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
---
diff --git a/src/e-util/e-html-editor-actions.c b/src/e-util/e-html-editor-actions.c
index 056158a030..98a4e93921 100644
--- a/src/e-util/e-html-editor-actions.c
+++ b/src/e-util/e-html-editor-actions.c
@@ -2067,9 +2067,7 @@ editor_actions_setup_spell_check_menu (EHTMLEditor *editor)
                        action, "activate",
                        G_CALLBACK (action_context_spell_add_cb), editor);
 
-               /* Visibility is dependent on whether the
-                * corresponding language action is active. */
-               gtk_action_set_visible (action, FALSE);
+               gtk_action_set_visible (action, e_spell_checker_get_language_active (spell_checker, code));
 
                gtk_action_group_add_action (action_group, action);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]