[evolution/wip/gsettings] Demonstrate EWebView as an EAlertSink.
- From: Rodrigo Moya <rodrigo src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/wip/gsettings] Demonstrate EWebView as an EAlertSink.
- Date: Wed, 29 Jun 2011 17:25:51 +0000 (UTC)
commit fec408b4c5f8059400ba90ead05d1692083cc97a
Author: Matthew Barnes <mbarnes redhat com>
Date: Wed Apr 13 12:09:07 2011 -0400
Demonstrate EWebView as an EAlertSink.
mail/e-mail-reader.c | 15 ++++-----------
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 c288db0..30480fb 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 709b572..7f07bb9 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>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]