[evolution/wip/webkit2] Bug 339511 - Need a more helpful message when no dictionary is installed
- From: Tomas Popela <tpopela src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/wip/webkit2] Bug 339511 - Need a more helpful message when no dictionary is installed
- Date: Wed, 7 Oct 2015 07:30:53 +0000 (UTC)
commit 007015aa3af31fddfe4cbf61f01566e0dba30c48
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 cac923d..ea62f54 100644
--- a/e-util/e-html-editor-actions.c
+++ b/e-util/e-html-editor-actions.c
@@ -119,7 +119,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]