[evolution/gnome-3-20] EHTMLEditorActions - Disable HTML actions in plain text mode



commit ae61552ecb46da260c319fcad39bc9ed2412958c
Author: Tomas Popela <tpopela redhat com>
Date:   Tue Jun 28 16:39:47 2016 +0200

    EHTMLEditorActions - Disable HTML actions in plain text mode
    
    They were just hidden and we could trigger them with a shortcuts i.e.
    Control + B made the selected text bold.

 e-util/e-html-editor-actions.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/e-util/e-html-editor-actions.c b/e-util/e-html-editor-actions.c
index 318dbac..638b05c 100644
--- a/e-util/e-html-editor-actions.c
+++ b/e-util/e-html-editor-actions.c
@@ -776,6 +776,7 @@ 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);


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