[evolution/wip/tpopela/composer-dnd: 3/6] Undo and redo buttons not active if switching from headers to editor



commit e8c4822567713db0d75d637c40e5108168eaa9e6
Author: Tomas Popela <tpopela redhat com>
Date:   Wed Mar 15 13:02:09 2017 +0100

    Undo and redo buttons not active if switching from headers to editor
    
    For example after opening a template, the recipient entry has focus
    and the user will use the replace dialog to replace some content in
    the editor. After he moves the focus to the editor, the undo and redo
    buttons are not activated.

 src/modules/webkit-editor/e-webkit-editor.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/modules/webkit-editor/e-webkit-editor.c b/src/modules/webkit-editor/e-webkit-editor.c
index c98f422..6831c1f 100644
--- a/src/modules/webkit-editor/e-webkit-editor.c
+++ b/src/modules/webkit-editor/e-webkit-editor.c
@@ -389,6 +389,9 @@ web_extension_selection_changed_cb (GDBusConnection *connection,
        }
        g_free (font_color);
 
+       g_object_notify (G_OBJECT (wk_editor), "can-undo");
+       g_object_notify (G_OBJECT (wk_editor), "can-redo");
+
        g_object_notify (G_OBJECT (wk_editor), "alignment");
        g_object_notify (G_OBJECT (wk_editor), "block-format");
        g_object_notify (G_OBJECT (wk_editor), "indented");


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