[evolution/wip/webkit-composer] EComposerActions: When composer is not editable make more actions insensitive



commit e9f9f859479035ef9d549912e3230169ef048137
Author: Tomas Popela <tpopela redhat com>
Date:   Thu Feb 6 09:23:37 2014 +0100

    EComposerActions: When composer is not editable make more actions insensitive

 composer/e-composer-actions.c |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/composer/e-composer-actions.c b/composer/e-composer-actions.c
index 75a8d6a..7630adb 100644
--- a/composer/e-composer-actions.c
+++ b/composer/e-composer-actions.c
@@ -525,6 +525,16 @@ e_composer_actions_init (EMsgComposer *composer)
                e_editor_get_action (editor, "insert-menu"), "sensitive",
                G_BINDING_SYNC_CREATE);
 
+       g_object_bind_property (
+               editor_widget, "editable",
+               e_editor_get_action (editor, "options-menu"), "sensitive",
+               G_BINDING_SYNC_CREATE);
+
+       g_object_bind_property (
+               editor_widget, "editable",
+               e_editor_get_action (editor, "picture-gallery"), "sensitive",
+               G_BINDING_SYNC_CREATE);
+
 #if defined (HAVE_NSS)
        visible = TRUE;
 #else


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