[evolution/wip/webkit-composer] EComposerAutosave: changed property is in EEditorWidget and not in EMsgComposer



commit fe3519a25020992b47a97b8f314f3a8b272c8e47
Author: Tomas Popela <tpopela redhat com>
Date:   Fri Feb 28 06:50:56 2014 +0100

    EComposerAutosave: changed property is in EEditorWidget and not in EMsgComposer

 modules/composer-autosave/e-composer-autosave.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/modules/composer-autosave/e-composer-autosave.c b/modules/composer-autosave/e-composer-autosave.c
index 6f85550..38bf825 100644
--- a/modules/composer-autosave/e-composer-autosave.c
+++ b/modules/composer-autosave/e-composer-autosave.c
@@ -166,6 +166,8 @@ composer_autosave_dispose (GObject *object)
 static void
 composer_autosave_constructed (GObject *object)
 {
+       EEditor *editor;
+       EEditorWidget *editor_widget;
        EExtensible *extensible;
 
        /* Chain up to parent's constructed() method. */
@@ -173,9 +175,11 @@ composer_autosave_constructed (GObject *object)
                constructed (object);
 
        extensible = e_extension_get_extensible (E_EXTENSION (object));
+       editor = e_msg_composer_get_editor (E_MSG_COMPOSER (extensible));
+       editor_widget = e_editor_get_editor_widget (editor);
 
        g_signal_connect_swapped (
-               extensible, "notify::changed",
+               editor_widget, "notify::changed",
                G_CALLBACK (composer_autosave_changed_cb), object);
 }
 


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