diff options
Diffstat (limited to 'mail')
-rw-r--r-- | mail/ChangeLog | 5 | ||||
-rw-r--r-- | mail/mail-callbacks.c | 6 |
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), |