aboutsummaryrefslogtreecommitdiffstats
path: root/mail/em-utils.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@src.gnome.org>2009-02-12 12:13:26 +0800
committerMatthew Barnes <mbarnes@src.gnome.org>2009-02-12 12:13:26 +0800
commit6bffa31112ca78585f3528bbd2ad52b84231e3f4 (patch)
tree833b7060b68ddd78ff062fb282f45c736bf9ce9e /mail/em-utils.c
parenta793e6363be3a3f3319fb3a779589840d0c3563b (diff)
downloadgsoc2013-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-utils.c')
-rw-r--r--mail/em-utils.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/mail/em-utils.c b/mail/em-utils.c
index 23f6b0cfc4..e7c34310bc 100644
--- a/mail/em-utils.c
+++ b/mail/em-utils.c
@@ -398,7 +398,7 @@ em_utils_save_part (GtkWindow *parent, const char *prompt, CamelMimePart *part)
const gchar *utf8_filename;
gchar *uri = NULL, *filename;
- g_return_if_fail (GTK_IS_WINDOW (parent));
+ g_return_if_fail (parent == NULL || GTK_IS_WINDOW (parent));
utf8_filename = emu_save_get_filename_for_part (part);
filename = g_filename_from_utf8 (utf8_filename, -1, NULL, NULL, NULL);
@@ -515,6 +515,8 @@ em_utils_save_parts (GtkWindow *parent, const gchar *prompt, GSList *parts)
gchar *path_uri;
GSList *iter, *file_names, *iter_file;
+ g_return_if_fail (parent == NULL || GTK_IS_WINDOW (parent));
+
file_chooser = e_file_get_save_filesel (
parent, prompt, NULL, GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER);