From 4a929caada81820d7499b09875870b84e9900912 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/e-mail-backend.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'mail/e-mail-backend.c') diff --git a/mail/e-mail-backend.c b/mail/e-mail-backend.c index 36b244d8d4..09cbcae8ef 100644 --- a/mail/e-mail-backend.c +++ b/mail/e-mail-backend.c @@ -29,6 +29,7 @@ #include "e-util/e-account-utils.h" #include "e-util/e-alert-dialog.h" +#include "e-util/e-alert-sink.h" #include "misc/e-account-combo-box.h" @@ -637,6 +638,6 @@ e_mail_backend_submit_alert (EMailBackend *backend, shell_content = e_shell_view_get_shell_content (shell_view); va_start (va, tag); - e_alert_submit_valist (GTK_WIDGET (shell_content), tag, va); + e_alert_submit_valist (E_ALERT_SINK (shell_content), tag, va); va_end (va); } -- cgit v1.2.3