[evolution/webkit: 67/96] Parse attachments with EM_FORMAT_HTML_INLINE_DISPOSITION as well
- From: Dan VrÃtil <dvratil src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/webkit: 67/96] Parse attachments with EM_FORMAT_HTML_INLINE_DISPOSITION as well
- Date: Wed, 4 Jan 2012 14:02:16 +0000 (UTC)
commit d94ab39a6a116bfe515aa430f7fb621b8812aabd
Author: Dan VrÃtil <dvratil redhat com>
Date: Wed Nov 30 14:25:34 2011 +0100
Parse attachments with EM_FORMAT_HTML_INLINE_DISPOSITION as well
This makes audio-inline, itip formatter and vcard-inline plugins work
mail/em-format-html-display.c | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/mail/em-format-html-display.c b/mail/em-format-html-display.c
index 13da70c..55d219a 100644
--- a/mail/em-format-html-display.c
+++ b/mail/em-format-html-display.c
@@ -496,8 +496,13 @@ efhd_parse_attachment (EMFormat *emf,
/* Though it is an attachment, we still might be able to parse it and
* so discover some parts that we might be event able to display. */
- if (handler && handler->parse_func && (handler->flags & EM_FORMAT_HANDLER_COMPOUND_TYPE))
- handler->parse_func (emf, puri->puri.part, part_id, info, cancellable);
+ if (handler && handler->parse_func &&
+ ((handler->flags & EM_FORMAT_HANDLER_COMPOUND_TYPE) ||
+ (handler->flags & EM_FORMAT_HANDLER_INLINE_DISPOSITION))) {
+ EMFormatParserInfo attachment_info = { .handler = handler,
+ .is_attachment = TRUE };
+ handler->parse_func (emf, puri->puri.part, part_id, &attachment_info, cancellable);
+ }
e_attachment_set_mime_part (puri->attachment, part);
e_attachment_set_shown (puri->attachment, puri->shown);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]