[evolution/webkit: 90/171] Fix displaying emails that are already parsed
- From: Dan VrÃtil <dvratil src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/webkit: 90/171] Fix displaying emails that are already parsed
- Date: Fri, 24 Feb 2012 12:42:02 +0000 (UTC)
commit a92fdf5a38d8995f8b45c9b7434e33814c0d7f91
Author: Dan VrÃtil <dvratil redhat com>
Date: Wed Jan 4 12:05:39 2012 +0100
Fix displaying emails that are already parsed
This was broken when making EMFormat running asynchronously. The EMailDisplay was correctly
loaded when the async callback was finished, but it was not loaded when the message was
already stored parsed in WebKitSession.
mail/e-mail-reader.c | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/mail/e-mail-reader.c b/mail/e-mail-reader.c
index ebb8bab..c858c84 100644
--- a/mail/e-mail-reader.c
+++ b/mail/e-mail-reader.c
@@ -3022,9 +3022,12 @@ mail_reader_message_loaded (EMailReader *reader,
g_hash_table_insert (formatters, mail_uri, formatter);
} else {
- /* Add reference that would be otherwise added when
- * the formatter is created. */
- g_object_ref (formatter);
+ EMailDisplay *display;
+
+ display = e_mail_reader_get_mail_display (reader);
+
+ e_mail_display_set_formatter (display, EM_FORMAT_HTML (formatter));
+ e_mail_display_load (display, EM_FORMAT (formatter)->uri_base);
}
/* Reset the shell view icon. */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]