diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2010-10-17 21:40:36 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2010-10-19 00:32:37 +0800 |
commit | 35e55a8d6e3455efa92abd669680d191e3e4cbac (patch) | |
tree | 303d479aaaf12538d73f611f52db1157da64549b /modules/mail/e-mail-junk-hook.c | |
parent | b674a37a381d0328a7273bafa62d80203c8cdf70 (diff) | |
download | gsoc2013-evolution-35e55a8d6e3455efa92abd669680d191e3e4cbac.tar.gz gsoc2013-evolution-35e55a8d6e3455efa92abd669680d191e3e4cbac.tar.zst gsoc2013-evolution-35e55a8d6e3455efa92abd669680d191e3e4cbac.zip |
Send errors to an EAlertSink instead of the task bar.
This marks the end of unintrusive error dialogs, which were too
unintrusive. We now show errors directly in the main window using
the EAlert / EAlertSink framework.
Diffstat (limited to 'modules/mail/e-mail-junk-hook.c')
-rw-r--r-- | modules/mail/e-mail-junk-hook.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/modules/mail/e-mail-junk-hook.c b/modules/mail/e-mail-junk-hook.c index ac88f1ea4c..24c1ac77fc 100644 --- a/modules/mail/e-mail-junk-hook.c +++ b/modules/mail/e-mail-junk-hook.c @@ -28,6 +28,7 @@ #include "mail/em-junk.h" #include "mail/em-utils.h" +#include "mail/e-mail-backend.h" #include "mail/e-mail-session.h" #define E_MAIL_JUNK_HOOK_GET_PRIVATE(obj) \ @@ -49,11 +50,15 @@ static GType mail_junk_hook_type; static gboolean mail_junk_hook_idle_cb (struct ErrorData *data) { - GtkWidget *widget; + EShell *shell; + EShellBackend *shell_backend; + + shell = e_shell_get_default (); + shell_backend = e_shell_get_backend_by_name (shell, "mail"); - widget = e_alert_dialog_new_for_args (e_shell_get_active_window (NULL), + e_mail_backend_submit_alert ( + E_MAIL_BACKEND (shell_backend), data->error_message, data->error->message, NULL); - em_utils_show_error_silent (widget); g_error_free (data->error); g_slice_free (struct ErrorData, data); |