diff options
author | Matthew Barnes <mbarnes@src.gnome.org> | 2009-02-12 12:13:26 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@src.gnome.org> | 2009-02-12 12:13:26 +0800 |
commit | 6bffa31112ca78585f3528bbd2ad52b84231e3f4 (patch) | |
tree | 833b7060b68ddd78ff062fb282f45c736bf9ce9e /mail/em-format-html-display.c | |
parent | a793e6363be3a3f3319fb3a779589840d0c3563b (diff) | |
download | gsoc2013-evolution-6bffa31112ca78585f3528bbd2ad52b84231e3f4.tar.gz gsoc2013-evolution-6bffa31112ca78585f3528bbd2ad52b84231e3f4.tar.zst gsoc2013-evolution-6bffa31112ca78585f3528bbd2ad52b84231e3f4.zip |
Make saving attachments work.
svn path=/branches/kill-bonobo/; revision=37250
Diffstat (limited to 'mail/em-format-html-display.c')
-rw-r--r-- | mail/em-format-html-display.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/mail/em-format-html-display.c b/mail/em-format-html-display.c index 1bdbcbea0e..d1c69fc3df 100644 --- a/mail/em-format-html-display.c +++ b/mail/em-format-html-display.c @@ -2158,19 +2158,23 @@ attachments_save_all_clicked (GtkWidget *widget, EMFormatHTMLDisplay *efhd) { GSList *attachment_parts; guint n_attachment_parts; + gpointer parent; attachment_parts = e_attachment_bar_get_parts ( E_ATTACHMENT_BAR (efhd->priv->attachment_bar)); n_attachment_parts = g_slist_length (attachment_parts); g_return_if_fail (n_attachment_parts > 0); + parent = gtk_widget_get_toplevel (widget); + parent = GTK_WIDGET_TOPLEVEL (parent) ? parent : NULL; + if (n_attachment_parts == 1) em_utils_save_part ( - widget, _("Save attachment as"), + parent, _("Save attachment as"), attachment_parts->data); else em_utils_save_parts ( - widget, _("Select folder to save all attachments"), + parent, _("Select folder to save all attachments"), attachment_parts); g_slist_free (attachment_parts); |