[evolution/gnome-3-24] Undo and redo buttons not active if switching from headers to editor



commit ddac364d924aee36e4747d8fa234d063b8138613
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 170d47c..053fc88 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]