From 8f6fcc14fbc67170f7abaecabb3a05c3e491ad39 Mon Sep 17 00:00:00 2001 From: Peter Williams Date: Wed, 12 Jul 2000 15:11:52 +0000 Subject: Fix bug #390: default attachment save dir should be ~ svn path=/trunk/; revision=4108 --- mail/ChangeLog | 5 +++++ mail/mail-display.c | 6 +++--- 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 + + * 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 * 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); -- cgit v1.2.3