[evolution] Bug #693132 - Editing a signature does not refresh preview after save



commit 5d4f9d8c2abb80a0390953f2331a38f8f487e0a4
Author: Milan Crha <mcrha redhat com>
Date:   Mon Feb 4 12:07:46 2013 +0100

    Bug #693132 - Editing a signature does not refresh preview after save

 e-util/e-mail-signature-editor.c |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)
---
diff --git a/e-util/e-mail-signature-editor.c b/e-util/e-mail-signature-editor.c
index 801a61f..bb1fc95 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));
 	}
 }



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