aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2001-04-12 00:43:21 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2001-04-12 00:43:21 +0800
commit8a38f582313a8acbb9badc28192fdd65a3167597 (patch)
tree24a0cb59047d1603b5a5a63e156c8361cd7d79e6 /mail
parent03fcee050123742b2f98f1ba44f4bb2e19c450bc (diff)
downloadgsoc2013-evolution-8a38f582313a8acbb9badc28192fdd65a3167597.tar
gsoc2013-evolution-8a38f582313a8acbb9badc28192fdd65a3167597.tar.gz
gsoc2013-evolution-8a38f582313a8acbb9badc28192fdd65a3167597.tar.bz2
gsoc2013-evolution-8a38f582313a8acbb9badc28192fdd65a3167597.tar.lz
gsoc2013-evolution-8a38f582313a8acbb9badc28192fdd65a3167597.tar.xz
gsoc2013-evolution-8a38f582313a8acbb9badc28192fdd65a3167597.tar.zst
gsoc2013-evolution-8a38f582313a8acbb9badc28192fdd65a3167597.zip
Change to the user's home dir before opening the filesel.
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. svn path=/trunk/; revision=9241
Diffstat (limited to 'mail')
-rw-r--r--mail/ChangeLog7
-rw-r--r--mail/mail-callbacks.c1
-rw-r--r--mail/mail-display.c3
3 files changed, 10 insertions, 1 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index 7573e55182..2a345352ec 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,3 +1,10 @@
+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.
+
2001-04-11 Christopher James Lahey <clahey@ximian.com>
* message-list.c (save_tree_state, message_list_setup_etree): Save
diff --git a/mail/mail-callbacks.c b/mail/mail-callbacks.c
index 0fc6596f88..e91e1f38cd 100644
--- a/mail/mail-callbacks.c
+++ b/mail/mail-callbacks.c
@@ -1138,6 +1138,7 @@ 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_object_set_data_full (GTK_OBJECT (filesel), "uids", uids, save_msg_destroy);
gtk_object_set_data (GTK_OBJECT (filesel), "folder", fb->folder);
diff --git a/mail/mail-display.c b/mail/mail-display.c
index 734182d176..5310e0a64f 100644
--- a/mail/mail-display.c
+++ b/mail/mail-display.c
@@ -188,7 +188,8 @@ save_cb (GtkWidget *widget, gpointer user_data)
CamelMimePart *part = gtk_object_get_data (user_data, "CamelMimePart");
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")));