diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2010-11-01 04:02:30 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2010-11-01 10:54:30 +0800 |
commit | 82925c6be94e9e48e4ef521a88a9feec24cf9eef (patch) | |
tree | 715d8578cd7b94eda1e7e0ade89057ea4fac5349 /mail/mail-mt.c | |
parent | cce2026f452ec3171a2211fb83651c90e71182a2 (diff) | |
download | gsoc2013-evolution-82925c6be94e9e48e4ef521a88a9feec24cf9eef.tar.gz gsoc2013-evolution-82925c6be94e9e48e4ef521a88a9feec24cf9eef.tar.zst gsoc2013-evolution-82925c6be94e9e48e4ef521a88a9feec24cf9eef.zip |
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.
Diffstat (limited to 'mail/mail-mt.c')
-rw-r--r-- | mail/mail-mt.c | 5 |
1 files changed, 3 insertions, 2 deletions
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 <libedataserver/e-flag.h> +#include <e-util/e-alert-sink.h> #include <shell/e-shell-view.h> #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); } |