aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-config.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2009-05-08 04:38:32 +0800
committerMatthew Barnes <mbarnes@redhat.com>2009-05-08 04:38:32 +0800
commit16e2beab9e4d412399f495f6165d27da80cb3675 (patch)
tree61946c02feb6e8187ef5368a9ddbcf15770cfe06 /mail/mail-config.c
parent84080821d62db3358fcaee4adfc24782ed7d4318 (diff)
downloadgsoc2013-evolution-16e2beab9e4d412399f495f6165d27da80cb3675.tar.gz
gsoc2013-evolution-16e2beab9e4d412399f495f6165d27da80cb3675.tar.zst
gsoc2013-evolution-16e2beab9e4d412399f495f6165d27da80cb3675.zip
Adapt mail to EShellBackend changes.
Again, builds but not tested. Lots of compiler warnings to clean up, but I don't have the energy for it. This was pretty grueling.
Diffstat (limited to 'mail/mail-config.c')
-rw-r--r--mail/mail-config.c18
1 files changed, 11 insertions, 7 deletions
diff --git a/mail/mail-config.c b/mail/mail-config.c
index be5b0164ee..45fc8f9b40 100644
--- a/mail/mail-config.c
+++ b/mail/mail-config.c
@@ -64,7 +64,7 @@
#include "mail-mt.h"
#include "mail-tools.h"
-#include "e-mail-shell-module.h"
+#include "e-mail-shell-backend.h"
typedef struct {
GConfClient *gconf;
@@ -773,11 +773,13 @@ mail_config_get_default_transport (void)
static char *
uri_to_evname (const char *uri, const char *prefix)
{
+ EShellBackend *shell_backend;
const gchar *data_dir;
char *safe;
char *tmp;
- data_dir = e_shell_module_get_data_dir (mail_shell_module);
+ shell_backend = E_SHELL_BACKEND (global_mail_shell_backend);
+ data_dir = e_shell_backend_get_data_dir (shell_backend);
safe = g_strdup (uri);
e_filename_make_safe (safe);
@@ -855,10 +857,10 @@ mail_config_uri_deleted (GCompareFunc uri_cmp, const char *uri)
const gchar *local_sent_folder_uri;
/* assumes these can't be removed ... */
- local_drafts_folder_uri = e_mail_shell_module_get_folder_uri (
- mail_shell_module, E_MAIL_FOLDER_DRAFTS);
- local_sent_folder_uri = e_mail_shell_module_get_folder_uri (
- mail_shell_module, E_MAIL_FOLDER_SENT);
+ local_drafts_folder_uri = e_mail_shell_backend_get_folder_uri (
+ global_mail_shell_backend, E_MAIL_FOLDER_DRAFTS);
+ local_sent_folder_uri = e_mail_shell_backend_get_folder_uri (
+ global_mail_shell_backend, E_MAIL_FOLDER_SENT);
account_list = e_get_account_list ();
iter = e_list_get_iterator ((EList *) account_list);
@@ -905,10 +907,12 @@ mail_config_folder_to_safe_url (CamelFolder *folder)
char *
mail_config_folder_to_cachename (CamelFolder *folder, const char *prefix)
{
+ EShellBackend *shell_backend;
char *url, *basename, *filename;
const gchar *config_dir;
- config_dir = e_shell_module_get_config_dir (mail_shell_module);
+ shell_backend = E_SHELL_BACKEND (global_mail_shell_backend);
+ config_dir = e_shell_backend_get_config_dir (shell_backend);
url = mail_config_folder_to_safe_url (folder);
basename = g_strdup_printf ("%s%s", prefix, url);