From 5d4f9d8c2abb80a0390953f2331a38f8f487e0a4 Mon Sep 17 00:00:00 2001 From: Milan Crha Date: Mon, 4 Feb 2013 12:07:46 +0100 Subject: Bug #693132 - Editing a signature does not refresh preview after save --- e-util/e-mail-signature-editor.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'e-util') diff --git a/e-util/e-mail-signature-editor.c b/e-util/e-mail-signature-editor.c index 801a61ffc7..bb1fc9536f 100644 --- a/e-util/e-mail-signature-editor.c +++ b/e-util/e-mail-signature-editor.c @@ -281,6 +281,17 @@ action_save_and_close_cb (GtkAction *action, /* Only destroy the editor if the save was successful. */ } else { + ESourceRegistry *registry; + + registry = e_mail_signature_editor_get_registry (editor); + + /* Only make sure that the 'source-changed' is called, + thus the preview of the signature is updated on save. + It is not called when only signature body is changed + (and ESource properties are left unchanged). + */ + g_signal_emit_by_name (registry, "source-changed", source); + gtk_widget_destroy (GTK_WIDGET (editor)); } } -- cgit v1.2.3