From 82925c6be94e9e48e4ef521a88a9feec24cf9eef Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Sun, 31 Oct 2010 16:02:30 -0400 Subject: Pass an EAlertSink to e_alert_sink_submit_alert(). Passing a random GtkWidget and then searching its ancestors for an EAlertSink turned out to be not as useful as I thought. Most of the time we know about and have access to the widget that implements EAlertSink, so just pass it directly as an EAlertSink. --- mail/mail-mt.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'mail/mail-mt.c') diff --git a/mail/mail-mt.c b/mail/mail-mt.c index 8e507e46fc..21471c5108 100644 --- a/mail/mail-mt.c +++ b/mail/mail-mt.c @@ -27,6 +27,7 @@ #include +#include #include #include "mail-mt.h" @@ -252,13 +253,13 @@ mail_msg_check_error (gpointer msg) if (m->info->desc && (what = m->info->desc (m))) { e_alert_submit ( - GTK_WIDGET (shell_content), + E_ALERT_SINK (shell_content), "mail:async-error", what, m->error->message, NULL); g_free (what); } else e_alert_submit ( - GTK_WIDGET (shell_content), + E_ALERT_SINK (shell_content), "mail:async-error-nodescribe", m->error->message, NULL); } -- cgit v1.2.3