From 04c91826b15a68ab5db7bb3143f24d06680447c9 Mon Sep 17 00:00:00 2001 From: Dan Winship Date: Mon, 23 Apr 2001 18:49:40 +0000 Subject: 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 --- mail/ChangeLog | 5 +++++ mail/mail-callbacks.c | 6 ++++-- 2 files changed, 9 insertions(+), 2 deletions(-) (limited to 'mail') 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 + + * 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 * 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), -- cgit