From f92b45d7df69c958bb4fc606831bc51ee2bcc914 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Thu, 8 Jul 2010 16:59:11 -0400 Subject: Fix places where "~/.evolution" is hard-coded. Also replace "$USER_DATA_DIR/cache" path constructions with e_get_user_cache_dir(). --- mail/em-format-html.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'mail/em-format-html.c') 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 -- cgit v1.2.3