aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mail/ChangeLog5
-rw-r--r--mail/mail-display.c6
2 files changed, 8 insertions, 3 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index b13b963e44..b0c29dc024 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,3 +1,8 @@
+2000-07-12 Peter Williams <peterw@helixcode.com>
+
+ * mail-display.c (save_data): Change from evolution_dir to
+ g_get_home_dir() for default location of save file.
+
2000-07-11 Jeffrey Stedfast <fejj@helixcode.com>
* mail-ops.c (real_fetch_mail): Changed to use
diff --git a/mail/mail-display.c b/mail/mail-display.c
index 06a319372a..c324b7cbc1 100644
--- a/mail/mail-display.c
+++ b/mail/mail-display.c
@@ -110,9 +110,9 @@ save_data (const char *cid, CamelMimeMessage *message)
p = strrchr (filename, '/');
if (p)
- filename = g_strdup_printf ("%s%s", evolution_dir, p);
+ filename = g_strdup_printf ("%s%s", g_get_home_dir(), p);
else {
- filename = g_strdup_printf ("%s/%s", evolution_dir,
+ filename = g_strdup_printf ("%s/%s", g_get_home_dir(),
filename);
}
@@ -122,7 +122,7 @@ save_data (const char *cid, CamelMimeMessage *message)
*p = '_';
}
} else
- filename = g_strdup_printf ("%s/attachment", evolution_dir);
+ filename = g_strdup_printf ("%s/attachment", g_get_home_dir());
file_select = GTK_FILE_SELECTION (gtk_file_selection_new ("Save Attachment"));
gtk_file_selection_set_filename (file_select, filename);