[evolution/webkit: 34/134] Make expandable only attachments whose PURIs have write_func
- From: Dan VrÃtil <dvratil src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/webkit: 34/134] Make expandable only attachments whose PURIs have write_func
- Date: Wed, 14 Dec 2011 15:35:06 +0000 (UTC)
commit 170c98fd1d70a2db156487486431cf2d75056c03
Author: Dan VrÃtil <dvratil redhat com>
Date: Wed Sep 14 12:27:57 2011 +0200
Make expandable only attachments whose PURIs have write_func
mail/em-format-html-display.c | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/mail/em-format-html-display.c b/mail/em-format-html-display.c
index 0732855..a7448c5 100644
--- a/mail/em-format-html-display.c
+++ b/mail/em-format-html-display.c
@@ -399,7 +399,7 @@ efhd_parse_attachment (EMFormat *emf,
puri->attachment = e_attachment_new ();
puri->attachment_view_part_id = g_strdup (classid);
puri->description = html;
- puri->handle = info->handler;
+ puri->handle = handler;
cid = camel_mime_part_get_content_id (part);
if (cid)
@@ -885,8 +885,6 @@ efhd_attachment_button (EMFormat *emf,
EMFormatHTMLDisplay *efhd = (EMFormatHTMLDisplay *) efh;
EAttachmentStore *store;
EAttachment *attachment;
- GFileInfo *finfo;
- const gchar *name;
GtkWidget *widget;
gpointer parent;
guint32 size = 0;
@@ -925,7 +923,7 @@ efhd_attachment_button (EMFormat *emf,
e_attachment_set_shown (attachment, info->shown);
e_attachment_set_signed (attachment, info->sign);
e_attachment_set_encrypted (attachment, info->encrypt);
- e_attachment_set_can_show (attachment, info->handle != NULL);
+ e_attachment_set_can_show (attachment, info->handle != NULL && info->handle->write_func);
/* FIXME: Try to find a better way? */
shell = e_shell_get_default ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]