aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorPeter Williams <peterw@src.gnome.org>2000-07-12 23:11:52 +0800
committerPeter Williams <peterw@src.gnome.org>2000-07-12 23:11:52 +0800
commit8f6fcc14fbc67170f7abaecabb3a05c3e491ad39 (patch)
tree512daeebfd9d860cc1fb298c231b08bc751b78a0 /mail
parente10afbe35597c4c2fc6cc16afabc81409613180d (diff)
downloadgsoc2013-evolution-8f6fcc14fbc67170f7abaecabb3a05c3e491ad39.tar
gsoc2013-evolution-8f6fcc14fbc67170f7abaecabb3a05c3e491ad39.tar.gz
gsoc2013-evolution-8f6fcc14fbc67170f7abaecabb3a05c3e491ad39.tar.bz2
gsoc2013-evolution-8f6fcc14fbc67170f7abaecabb3a05c3e491ad39.tar.lz
gsoc2013-evolution-8f6fcc14fbc67170f7abaecabb3a05c3e491ad39.tar.xz
gsoc2013-evolution-8f6fcc14fbc67170f7abaecabb3a05c3e491ad39.tar.zst
gsoc2013-evolution-8f6fcc14fbc67170f7abaecabb3a05c3e491ad39.zip
Fix bug #390: default attachment save dir should be ~
svn path=/trunk/; revision=4108
Diffstat (limited to 'mail')
-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);