[evolution/wip/tpopela/freeze-fixes] Bug 339511 - Need a more helpful message when no dictionary is installed



commit 60a9aee63660c52d637ae5e9d47dcc69dbe3b6ae
Author: Tomas Popela <tpopela redhat com>
Date:   Thu Mar 19 14:47:32 2015 +0100

    Bug 339511 - Need a more helpful message when no dictionary is installed
    
    Hide the spell check actions when no dictionary is installed.

 e-util/e-html-editor-actions.c |    3 ++-
 e-util/e-html-editor-actions.h |    2 ++
 2 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/e-util/e-html-editor-actions.c b/e-util/e-html-editor-actions.c
index 49d0c60..04f5218 100644
--- a/e-util/e-html-editor-actions.c
+++ b/e-util/e-html-editor-actions.c
@@ -127,7 +127,8 @@ editor_update_static_spell_actions (EHTMLEditor *editor)
        gtk_action_set_visible (ACTION (CONTEXT_SPELL_ADD_MENU), count > 1);
        gtk_action_set_visible (ACTION (CONTEXT_SPELL_IGNORE), count > 0);
 
-       gtk_action_set_sensitive (ACTION (SPELL_CHECK), count > 0);
+       gtk_action_set_visible (ACTION (SPELL_CHECK), count > 0);
+       gtk_action_set_visible (ACTION (LANGUAGE_MENU), count > 0);
 }
 
 /*****************************************************************************
diff --git a/e-util/e-html-editor-actions.h b/e-util/e-html-editor-actions.h
index 8999add..d2e80df 100644
--- a/e-util/e-html-editor-actions.h
+++ b/e-util/e-html-editor-actions.h
@@ -101,6 +101,8 @@
        E_HTML_EDITOR_ACTION ((editor), "justify-left")
 #define E_HTML_EDITOR_ACTION_JUSTIFY_RIGHT(editor) \
        E_HTML_EDITOR_ACTION ((editor), "justify-right")
+#define E_HTML_EDITOR_ACTION_LANGUAGE_MENU(editor) \
+       E_HTML_EDITOR_ACTION ((editor), "language-menu")
 #define E_HTML_EDITOR_ACTION_MODE_HTML(editor) \
        E_HTML_EDITOR_ACTION ((editor), "mode-html")
 #define E_HTML_EDITOR_ACTION_MODE_PLAIN(editor) \


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