diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2011-04-14 00:09:07 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2011-04-14 00:09:07 +0800 |
commit | 35a998b2de7d3127ea802a9284f2b5ab44df1de6 (patch) | |
tree | 5c38a3e5746345761ce1d5fd5379980cbca0322d /mail | |
parent | ae436d4fdc2d7a6f9580b2e17cc32dfd33255f9f (diff) | |
download | gsoc2013-evolution-35a998b2de7d3127ea802a9284f2b5ab44df1de6.tar gsoc2013-evolution-35a998b2de7d3127ea802a9284f2b5ab44df1de6.tar.gz gsoc2013-evolution-35a998b2de7d3127ea802a9284f2b5ab44df1de6.tar.bz2 gsoc2013-evolution-35a998b2de7d3127ea802a9284f2b5ab44df1de6.tar.lz gsoc2013-evolution-35a998b2de7d3127ea802a9284f2b5ab44df1de6.tar.xz gsoc2013-evolution-35a998b2de7d3127ea802a9284f2b5ab44df1de6.tar.zst gsoc2013-evolution-35a998b2de7d3127ea802a9284f2b5ab44df1de6.zip |
Demonstrate EWebView as an EAlertSink.
Diffstat (limited to 'mail')
-rw-r--r-- | mail/e-mail-reader.c | 15 | ||||
-rw-r--r-- | mail/mail.error.xml | 5 |
2 files changed, 9 insertions, 11 deletions
diff --git a/mail/e-mail-reader.c b/mail/e-mail-reader.c index c288db023e..30480fb1d6 100644 --- a/mail/e-mail-reader.c +++ b/mail/e-mail-reader.c @@ -2706,17 +2706,10 @@ mail_reader_message_loaded_cb (CamelFolder *folder, mail_reader_closure_free); } else if (error != NULL) { - gchar *string; - - /* Display the error inline and clear the exception. */ - string = g_strdup_printf ( - "<h2>%s</h2><p>%s</p>", - _("Unable to retrieve message"), - error->message); - - e_web_view_load_string (web_view, string); - g_free (string); - + e_alert_submit ( + E_ALERT_SINK (web_view), + "mail:no-retrieve-message", + error->message, NULL); g_error_free (error); } diff --git a/mail/mail.error.xml b/mail/mail.error.xml index 709b572cbb..7f07bb9cbe 100644 --- a/mail/mail.error.xml +++ b/mail/mail.error.xml @@ -500,5 +500,10 @@ An mbox account will be created to preserve the old mbox folders. You can delete <_primary>Failed to unsubscribe from folder.</_primary> <_secondary>The reported error was "{0}".</_secondary> </error> + + <error id="no-retrieve-message" type="warning"> + <_primary>Unable to retrieve message.</_primary> + <_secondary xml:space="preserve">{0}</_secondary> + </error> </error-list> |