aboutsummaryrefslogtreecommitdiffstats
path: root/mail/em-format-html-display.c
diff options
context:
space:
mode:
authorSrinivasa Ragavan <sragavan@src.gnome.org>2006-04-22 03:43:24 +0800
committerSrinivasa Ragavan <sragavan@src.gnome.org>2006-04-22 03:43:24 +0800
commit940383d6760233b3c265abcfbc843ed6e036e845 (patch)
tree5a4876976788dc55cf169b4f980abd00a4ec5623 /mail/em-format-html-display.c
parent4900743e0d9b494e26e9c18df1ec4dbcb39b67ac (diff)
downloadgsoc2013-evolution-940383d6760233b3c265abcfbc843ed6e036e845.tar
gsoc2013-evolution-940383d6760233b3c265abcfbc843ed6e036e845.tar.gz
gsoc2013-evolution-940383d6760233b3c265abcfbc843ed6e036e845.tar.bz2
gsoc2013-evolution-940383d6760233b3c265abcfbc843ed6e036e845.tar.lz
gsoc2013-evolution-940383d6760233b3c265abcfbc843ed6e036e845.tar.xz
gsoc2013-evolution-940383d6760233b3c265abcfbc843ed6e036e845.tar.zst
gsoc2013-evolution-940383d6760233b3c265abcfbc843ed6e036e845.zip
Added code to create image attachment's icon in non-gui thread.
svn path=/trunk/; revision=31859
Diffstat (limited to 'mail/em-format-html-display.c')
-rw-r--r--mail/em-format-html-display.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/mail/em-format-html-display.c b/mail/em-format-html-display.c
index 6ebf316d54..3a18ad28ab 100644
--- a/mail/em-format-html-display.c
+++ b/mail/em-format-html-display.c
@@ -166,6 +166,9 @@ struct _attach_puri {
CamelStream *output;
unsigned int shown:1;
+ /* Attachment */
+ EAttachment *attachment;
+
/* image stuff */
int fit_width;
int fit_height;
@@ -1552,7 +1555,7 @@ efhd_attachment_button(EMFormatHTML *efh, GtkHTMLEmbedded *eb, EMFormatHTMLPObje
if (efhd->priv->attachment_bar) {
file = camel_mime_part_get_filename(info->puri.part);
- new = e_attachment_new_from_mime_part (info->puri.part);
+ new = info->attachment;
if (!file) {
file = "attachment.dat";
@@ -2141,6 +2144,8 @@ efhd_format_attachment(EMFormat *emf, CamelStream *stream, CamelMimePart *part,
info->handle = handle;
info->shown = em_format_is_inline(emf, info->puri.part_id, info->puri.part, handle);
info->snoop_mime_type = emf->snoop_mime_type;
+ info->attachment = e_attachment_new_from_mime_part (info->puri.part);
+ e_attachment_bar_create_attachment_cache (info->attachment);
if (emf->valid) {
info->sign = emf->valid->sign.status;