aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2010-07-09 04:59:11 +0800
committerMatthew Barnes <mbarnes@redhat.com>2010-07-09 04:59:11 +0800
commitf92b45d7df69c958bb4fc606831bc51ee2bcc914 (patch)
tree704ffb1fe55bb37673436695c2d4e49efab8e7b4 /mail
parentae4e6007efece29bf587f3193e7c57ad7f7d81dc (diff)
downloadgsoc2013-evolution-f92b45d7df69c958bb4fc606831bc51ee2bcc914.tar
gsoc2013-evolution-f92b45d7df69c958bb4fc606831bc51ee2bcc914.tar.gz
gsoc2013-evolution-f92b45d7df69c958bb4fc606831bc51ee2bcc914.tar.bz2
gsoc2013-evolution-f92b45d7df69c958bb4fc606831bc51ee2bcc914.tar.lz
gsoc2013-evolution-f92b45d7df69c958bb4fc606831bc51ee2bcc914.tar.xz
gsoc2013-evolution-f92b45d7df69c958bb4fc606831bc51ee2bcc914.tar.zst
gsoc2013-evolution-f92b45d7df69c958bb4fc606831bc51ee2bcc914.zip
Fix places where "~/.evolution" is hard-coded.
Also replace "$USER_DATA_DIR/cache" path constructions with e_get_user_cache_dir().
Diffstat (limited to 'mail')
-rw-r--r--mail/em-format-html.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/mail/em-format-html.c b/mail/em-format-html.c
index c63ed28085..55cbca13fc 100644
--- a/mail/em-format-html.c
+++ b/mail/em-format-html.c
@@ -761,7 +761,7 @@ efh_class_init (EMFormatHTMLClass *class)
{
GObjectClass *object_class;
EMFormatClass *format_class;
- gchar *pathname;
+ const gchar *user_cache_dir;
parent_class = g_type_class_peek_parent (class);
g_type_class_add_private (class, sizeof (EMFormatHTMLPrivate));
@@ -908,14 +908,12 @@ efh_class_init (EMFormatHTMLClass *class)
G_PARAM_READABLE));
/* cache expiry - 2 hour access, 1 day max */
- pathname = g_build_filename (
- e_get_user_data_dir (), "cache", NULL);
- emfh_http_cache = camel_data_cache_new (pathname, NULL);
+ user_cache_dir = e_get_user_cache_dir ();
+ emfh_http_cache = camel_data_cache_new (user_cache_dir, NULL);
if (emfh_http_cache) {
camel_data_cache_set_expire_age(emfh_http_cache, 24*60*60);
camel_data_cache_set_expire_access(emfh_http_cache, 2*60*60);
}
- g_free (pathname);
}
static void