From c05c973cff53769ef575bfc5257a2a414117b323 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Thu, 26 Mar 2009 04:48:21 +0000 Subject: Saving progress again on the attachment rewrite. svn path=/branches/kill-bonobo/; revision=37476 --- mail/em-format-html-display.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'mail/em-format-html-display.c') 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); -- cgit v1.2.3