diff options
author | Matthew Barnes <mbarnes@src.gnome.org> | 2009-02-13 11:23:04 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@src.gnome.org> | 2009-02-13 11:23:04 +0800 |
commit | 10c3ddb38138f3408044fd46115d5804f057c13a (patch) | |
tree | b4950fe1db704f6410c4219682f4b48ac7ccacb4 /mail/em-format-html-display.c | |
parent | 0e4972fe5dc98316c6b0406e8809f43f0a6344f4 (diff) | |
download | gsoc2013-evolution-10c3ddb38138f3408044fd46115d5804f057c13a.tar.gz gsoc2013-evolution-10c3ddb38138f3408044fd46115d5804f057c13a.tar.zst gsoc2013-evolution-10c3ddb38138f3408044fd46115d5804f057c13a.zip |
Make attachment saving work everywhere.
svn path=/branches/kill-bonobo/; revision=37259
Diffstat (limited to 'mail/em-format-html-display.c')
-rw-r--r-- | mail/em-format-html-display.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/mail/em-format-html-display.c b/mail/em-format-html-display.c index d1c69fc3df..e9516100f0 100644 --- a/mail/em-format-html-display.c +++ b/mail/em-format-html-display.c @@ -2209,14 +2209,20 @@ efhd_bar_save_selected(EPopup *ep, EPopupItem *item, void *data) EMFormatHTMLDisplay *efhd = (EMFormatHTMLDisplay *)data; GSList *attachment_parts, *tmp; GSList *parts = NULL; + GtkWidget *widget; + gpointer parent; + + widget = efhd->priv->attachment_bar; + parent = gtk_widget_get_toplevel (widget); + parent = GTK_WIDGET_TOPLEVEL (parent) ? parent : NULL; - attachment_parts = e_attachment_bar_get_selected(E_ATTACHMENT_BAR(efhd->priv->attachment_bar)); + attachment_parts = e_attachment_bar_get_selected(E_ATTACHMENT_BAR(widget)); for (tmp = attachment_parts; tmp; tmp=tmp->next) parts = g_slist_prepend(parts, ((EAttachment *)tmp->data)->body); parts = g_slist_reverse(parts); - em_utils_save_parts(efhd->priv->attachment_bar, _("Select folder to save selected attachments..."), parts); + em_utils_save_parts(parent, _("Select folder to save selected attachments..."), parts); g_slist_free (parts); g_slist_foreach(attachment_parts, (GFunc)g_object_unref, NULL); |