[evolution] EMailSignatureEditor - Use correct alert sink



commit a15e328551cdfa823ec4df184277f63645c2a105
Author: Milan Crha <mcrha redhat com>
Date:   Wed Apr 1 13:53:56 2015 +0200

    EMailSignatureEditor - Use correct alert sink
    
    The EMailSignatureEditor is no an alert sink, it's the inner HTML editor,
    thus use it for alerts.

 e-util/e-mail-signature-editor.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/e-util/e-mail-signature-editor.c b/e-util/e-mail-signature-editor.c
index b75481f..47ca66d 100644
--- a/e-util/e-mail-signature-editor.c
+++ b/e-util/e-mail-signature-editor.c
@@ -127,7 +127,7 @@ mail_signature_editor_loaded_cb (GObject *object,
        } else if (error != NULL) {
                g_warn_if_fail (contents == NULL);
                e_alert_submit (
-                       E_ALERT_SINK (window),
+                       E_ALERT_SINK (e_mail_signature_editor_get_editor (window)),
                        "widgets:no-load-signature",
                        error->message, NULL);
                g_object_unref (window);
@@ -230,7 +230,7 @@ action_save_and_close_cb (GtkAction *action,
        /* Make sure the signature name is not blank. */
        if (*display_name == '\0') {
                e_alert_submit (
-                       E_ALERT_SINK (editor),
+                       E_ALERT_SINK (e_mail_signature_editor_get_editor (editor)),
                        "widgets:blank-signature", NULL);
                gtk_widget_grab_focus (GTK_WIDGET (entry));
                g_free (display_name);
@@ -267,7 +267,7 @@ action_save_and_close_cb (GtkAction *action,
 
        } else if (error != NULL) {
                e_alert_submit (
-                       E_ALERT_SINK (editor),
+                       E_ALERT_SINK (e_mail_signature_editor_get_editor (editor)),
                        "widgets:no-save-signature",
                        error->message, NULL);
                g_error_free (error);


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