diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2001-04-12 01:06:49 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2001-04-12 01:06:49 +0800 |
commit | f48134d1d5ab176c858939cf8e5537f107662cea (patch) | |
tree | 7c01edb3dc448879ff23271579ae56801b6f2224 | |
parent | 4652efde7ffec9b99d1cd04473897cf48a69a293 (diff) | |
download | gsoc2013-evolution-f48134d1d5ab176c858939cf8e5537f107662cea.tar gsoc2013-evolution-f48134d1d5ab176c858939cf8e5537f107662cea.tar.gz gsoc2013-evolution-f48134d1d5ab176c858939cf8e5537f107662cea.tar.bz2 gsoc2013-evolution-f48134d1d5ab176c858939cf8e5537f107662cea.tar.lz gsoc2013-evolution-f48134d1d5ab176c858939cf8e5537f107662cea.tar.xz gsoc2013-evolution-f48134d1d5ab176c858939cf8e5537f107662cea.tar.zst gsoc2013-evolution-f48134d1d5ab176c858939cf8e5537f107662cea.zip |
Use the homedir as the default filename.
2001-04-11 Jeffrey Stedfast <fejj@ximian.com>
* mail-callbacks.c (save_msg): Use the homedir as the default
filename.
svn path=/trunk/; revision=9244
-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"))); |