diff options
Diffstat (limited to 'mail')
-rw-r--r-- | mail/ChangeLog | 6 | ||||
-rw-r--r-- | mail/mail-callbacks.c | 2 | ||||
-rw-r--r-- | mail/mail-display.c | 1 |
3 files changed, 3 insertions, 6 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog index 2a345352ec..9031c30b4c 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,9 +1,7 @@ 2001-04-11 Jeffrey Stedfast <fejj@ximian.com> - * mail-display.c (save_cb): Change to the user's home dir before - opening the filesel. - - * mail-callbacks.c (save_msg): Same. + * mail-callbacks.c (save_msg): Use the homedir as the default + filename. 2001-04-11 Christopher James Lahey <clahey@ximian.com> diff --git a/mail/mail-callbacks.c b/mail/mail-callbacks.c index e91e1f38cd..2c0815073a 100644 --- a/mail/mail-callbacks.c +++ b/mail/mail-callbacks.c @@ -1138,8 +1138,8 @@ save_msg (GtkWidget *widget, gpointer user_data) else title = _("Save Messages As..."); - chdir (g_get_home_dir ()); filesel = GTK_FILE_SELECTION (gtk_file_selection_new (title)); + gtk_file_selection_set_filename (filesel, g_get_home_dir ()); 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), diff --git a/mail/mail-display.c b/mail/mail-display.c index 5310e0a64f..55eae01dca 100644 --- a/mail/mail-display.c +++ b/mail/mail-display.c @@ -189,7 +189,6 @@ save_cb (GtkWidget *widget, gpointer user_data) GtkFileSelection *file_select; char *filename; - chdir (g_get_home_dir ()); filename = make_safe_filename (g_get_home_dir (), part); file_select = GTK_FILE_SELECTION ( gtk_file_selection_new (_("Save Attachment"))); |