[evolution/wip/webkit2] EHTMLEditorActions - Bind the sensitivity of HTML actions on the html-mode property of EContentEdito
- From: Tomas Popela <tpopela src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/wip/webkit2] EHTMLEditorActions - Bind the sensitivity of HTML actions on the html-mode property of EContentEdito
- Date: Fri, 1 Jul 2016 13:09:04 +0000 (UTC)
commit 74b601644bf2bbaa0584f308782238b5772a739b
Author: Tomas Popela <tpopela redhat com>
Date: Thu Jun 30 16:15:59 2016 +0200
EHTMLEditorActions - Bind the sensitivity of HTML actions on the html-mode property of EContentEditor
e-util/e-html-editor-actions.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/e-util/e-html-editor-actions.c b/e-util/e-html-editor-actions.c
index d169740..24aecdd 100644
--- a/e-util/e-html-editor-actions.c
+++ b/e-util/e-html-editor-actions.c
@@ -482,7 +482,6 @@ action_mode_cb (GtkRadioAction *action,
action_group = editor->priv->html_actions;
gtk_action_group_set_visible (action_group, is_html);
- gtk_action_group_set_sensitive (action_group, is_html);
action_group = editor->priv->html_context_actions;
gtk_action_group_set_visible (action_group, is_html);
@@ -1916,6 +1915,11 @@ editor_actions_bind (EHTMLEditor *editor)
ACTION (UNDERLINE), "active",
G_BINDING_SYNC_CREATE | G_BINDING_BIDIRECTIONAL);
+ e_binding_bind_property (
+ cnt_editor, "html-mode",
+ editor->priv->html_actions, "sensitive",
+ G_BINDING_SYNC_CREATE);
+
/* Disable all actions and toolbars when editor is not editable */
e_binding_bind_property (
cnt_editor, "editable",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]