aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Winship <danw@src.gnome.org>2001-04-24 02:49:40 +0800
committerDan Winship <danw@src.gnome.org>2001-04-24 02:49:40 +0800
commit04c91826b15a68ab5db7bb3143f24d06680447c9 (patch)
tree2261ae03b480aefbdc4e71b29c6e18a71e29d318
parent71bb73fd1491578973b63a7a05e0c074f2765a49 (diff)
downloadgsoc2013-evolution-04c91826b15a68ab5db7bb3143f24d06680447c9.tar
gsoc2013-evolution-04c91826b15a68ab5db7bb3143f24d06680447c9.tar.gz
gsoc2013-evolution-04c91826b15a68ab5db7bb3143f24d06680447c9.tar.bz2
gsoc2013-evolution-04c91826b15a68ab5db7bb3143f24d06680447c9.tar.lz
gsoc2013-evolution-04c91826b15a68ab5db7bb3143f24d06680447c9.tar.xz
gsoc2013-evolution-04c91826b15a68ab5db7bb3143f24d06680447c9.tar.zst
gsoc2013-evolution-04c91826b15a68ab5db7bb3143f24d06680447c9.zip
Append a "/" to the result of g_get_home_dir so gets the default dir it
* mail-callbacks.c (save_msg): Append a "/" to the result of g_get_home_dir so gets the default dir it was supposed to. svn path=/trunk/; revision=9511
-rw-r--r--mail/ChangeLog5
-rw-r--r--mail/mail-callbacks.c6
2 files changed, 9 insertions, 2 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index c2e05ead63..1ceda1f344 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,3 +1,8 @@
+2001-04-23 Dan Winship <danw@ximian.com>
+
+ * mail-callbacks.c (save_msg): Append a "/" to the result of
+ g_get_home_dir so gets the default dir it was supposed to.
+
2001-04-22 Jeffrey Stedfast <fejj@ximian.com>
* mail-ops.c (mail_send_message): Lets do proper refcounting on
diff --git a/mail/mail-callbacks.c b/mail/mail-callbacks.c
index 871a63325e..46a38030fa 100644
--- a/mail/mail-callbacks.c
+++ b/mail/mail-callbacks.c
@@ -1251,7 +1251,7 @@ save_msg (GtkWidget *widget, gpointer user_data)
FolderBrowser *fb = FOLDER_BROWSER (user_data);
GtkFileSelection *filesel;
GPtrArray *uids;
- char *title;
+ char *title, *path;
uids = g_ptr_array_new ();
message_list_foreach (fb->message_list, enumerate_msg, uids);
@@ -1262,7 +1262,9 @@ save_msg (GtkWidget *widget, gpointer user_data)
title = _("Save Messages As...");
filesel = GTK_FILE_SELECTION (gtk_file_selection_new (title));
- gtk_file_selection_set_filename (filesel, g_get_home_dir ());
+ path = g_strdup_printf ("%s/", g_get_home_dir ());
+ gtk_file_selection_set_filename (filesel, path);
+ g_free (path);
gtk_object_set_data_full (GTK_OBJECT (filesel), "uids", uids, save_msg_destroy);
gtk_object_set_data (GTK_OBJECT (filesel), "folder", fb->folder);
gtk_signal_connect (GTK_OBJECT (filesel->ok_button),