[evolution/webkit: 81/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: 81/134] Make expandable only attachments whose PURIs have write_func
- Date: Wed, 14 Dec 2011 15:38:27 +0000 (UTC)
commit 909fa42c48a460f90cffca7c240d535c99eb4cab
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 1558b74..1d945f8 100644
--- a/mail/em-format-html-display.c
+++ b/mail/em-format-html-display.c
@@ -401,7 +401,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)
@@ -887,8 +887,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;
@@ -927,7 +925,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]