aboutsummaryrefslogtreecommitdiffstats
path: root/mail/em-format-html-display.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@src.gnome.org>2009-03-26 12:48:21 +0800
committerMatthew Barnes <mbarnes@src.gnome.org>2009-03-26 12:48:21 +0800
commitc05c973cff53769ef575bfc5257a2a414117b323 (patch)
tree0fbf2bedde0eccc6062d2240890ab53875f6aa71 /mail/em-format-html-display.c
parent6e163b39c75dbba470d073b4f79a897aa6fb0e54 (diff)
downloadgsoc2013-evolution-c05c973cff53769ef575bfc5257a2a414117b323.tar.gz
gsoc2013-evolution-c05c973cff53769ef575bfc5257a2a414117b323.tar.zst
gsoc2013-evolution-c05c973cff53769ef575bfc5257a2a414117b323.zip
Saving progress again on the attachment rewrite.
svn path=/branches/kill-bonobo/; revision=37476
Diffstat (limited to 'mail/em-format-html-display.c')
-rw-r--r--mail/em-format-html-display.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/mail/em-format-html-display.c b/mail/em-format-html-display.c
index 7ccdc07e63..6020ce4845 100644
--- a/mail/em-format-html-display.c
+++ b/mail/em-format-html-display.c
@@ -1319,10 +1319,17 @@ efhd_attachment_button(EMFormatHTML *efh, GtkHTMLEmbedded *eb, EMFormatHTMLPObje
if (efhd->priv->attachment_bar) {
EAttachmentView *view;
EAttachmentStore *store;
+ gpointer parent;
+
+ parent = gtk_widget_get_toplevel (efhd->priv->attachment_bar);
+ parent = GTK_WIDGET_TOPLEVEL (parent) ? parent : NULL;
view = E_ATTACHMENT_VIEW (efhd->priv->attachment_bar);
store = e_attachment_view_get_store (view);
e_attachment_store_add_attachment (store, info->attachment);
+ e_attachment_load_async (
+ info->attachment, (GAsyncReadyCallback)
+ e_attachment_load_handle_error, parent);
#if 0 /* KILL-BONOBO */
file = camel_mime_part_get_filename(info->puri.part);