[evolution/gnome-42] EWebKitEditor: Mode change not propagated into the Editor widget



commit ce50444f3fb44a5b53391cb8c79a5fa5395d1adf
Author: Milan Crha <mcrha redhat com>
Date:   Thu Apr 28 11:35:54 2022 +0200

    EWebKitEditor: Mode change not propagated into the Editor widget
    
    This could be reproduced for example when forwarding an HTML message
    and having Evolution set to format text in Plain Text. In such case
    a "lose formatting" question is shown and when choosing to not lose
    it, the content shows an HTML variant, but the format combo still
    shows "Plain Text", which means the sent message will be plain text,
    despite editing in HTML.

 src/modules/webkit-editor/e-webkit-editor.c | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/src/modules/webkit-editor/e-webkit-editor.c b/src/modules/webkit-editor/e-webkit-editor.c
index 0fc8b47afa..8b0b30717f 100644
--- a/src/modules/webkit-editor/e-webkit-editor.c
+++ b/src/modules/webkit-editor/e-webkit-editor.c
@@ -1982,6 +1982,8 @@ webkit_editor_set_mode (EWebKitEditor *wk_editor,
 
        webkit_editor_update_styles (E_CONTENT_EDITOR (wk_editor));
        webkit_editor_style_updated (wk_editor, FALSE);
+
+       g_object_notify (G_OBJECT (wk_editor), "mode");
 }
 
 static void


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