From 968ea42023e5e0daf860a7246533311a67f77e05 Mon Sep 17 00:00:00 2001 From: Jonathon Jongsma Date: Wed, 16 Dec 2009 10:27:12 -0600 Subject: Kill em_utils_get_data/config_dir(), push down to MailSession This pushes the get_data_dir() API down to the right level. At present, it is still implemented by querying the shell backend for the data dir / config dir. But this should eventually be reversed (when mail is split off to EDS) so that the mail daemon is the one responsible for the storage locations and the shell backend queries the daemon for these values. --- mail/mail-config.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'mail/mail-config.c') diff --git a/mail/mail-config.c b/mail/mail-config.c index 41ac85a373..be2125bcc0 100644 --- a/mail/mail-config.c +++ b/mail/mail-config.c @@ -59,7 +59,6 @@ #include #include "e-mail-local.h" -#include "em-utils.h" #include "mail-config.h" #include "mail-folder-cache.h" #include "mail-mt.h" @@ -441,7 +440,7 @@ uri_to_evname (const gchar *uri, const gchar *prefix) gchar *safe; gchar *tmp; - data_dir = em_utils_get_data_dir (); + data_dir = mail_session_get_data_dir (); safe = g_strdup (uri); e_filename_make_safe (safe); @@ -573,7 +572,7 @@ mail_config_folder_to_cachename (CamelFolder *folder, const gchar *prefix) gchar *url, *basename, *filename; const gchar *config_dir; - config_dir = em_utils_get_config_dir (); + config_dir = mail_session_get_config_dir (); url = mail_config_folder_to_safe_url (folder); basename = g_strdup_printf ("%s%s", prefix, url); filename = g_build_filename (config_dir, basename, NULL); -- cgit v1.2.3