aboutsummaryrefslogtreecommitdiffstats
path: root/mail/em-account-prefs.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2009-06-24 12:40:49 +0800
committerMatthew Barnes <mbarnes@redhat.com>2009-06-24 12:40:49 +0800
commit174c942e0945a2017f0c479883dce2950e42e786 (patch)
tree0011078b4121d5c6c200825b0ab1bb1c4cefd519 /mail/em-account-prefs.c
parentce7537b495a3788d9bda4b6a783a5c3d95309926 (diff)
downloadgsoc2013-evolution-174c942e0945a2017f0c479883dce2950e42e786.tar
gsoc2013-evolution-174c942e0945a2017f0c479883dce2950e42e786.tar.gz
gsoc2013-evolution-174c942e0945a2017f0c479883dce2950e42e786.tar.bz2
gsoc2013-evolution-174c942e0945a2017f0c479883dce2950e42e786.tar.lz
gsoc2013-evolution-174c942e0945a2017f0c479883dce2950e42e786.tar.xz
gsoc2013-evolution-174c942e0945a2017f0c479883dce2950e42e786.tar.zst
gsoc2013-evolution-174c942e0945a2017f0c479883dce2950e42e786.zip
Split store and local folder management out from shell backend.
Diffstat (limited to 'mail/em-account-prefs.c')
-rw-r--r--mail/em-account-prefs.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/mail/em-account-prefs.c b/mail/em-account-prefs.c
index 82342de3c9..f2c646d5ed 100644
--- a/mail/em-account-prefs.c
+++ b/mail/em-account-prefs.c
@@ -36,9 +36,9 @@
#include "e-util/e-error.h"
+#include "e-mail-store.h"
#include "em-config.h"
#include "em-account-editor.h"
-#include "e-mail-shell-backend.h"
#define EM_ACCOUNT_PREFS_GET_PRIVATE(obj) \
(G_TYPE_INSTANCE_GET_PRIVATE \
@@ -59,9 +59,7 @@ account_prefs_enable_account_cb (EAccountTreeView *tree_view)
account = e_account_tree_view_get_selected (tree_view);
g_return_if_fail (account != NULL);
- e_mail_shell_backend_load_store_by_uri (
- global_mail_shell_backend,
- account->source->url, account->name);
+ e_mail_store_add_by_uri (account->source->url, account->name);
}
static void
@@ -94,8 +92,7 @@ account_prefs_disable_account_cb (EAccountTreeView *tree_view)
e_account_list_remove_account_proxies (account_list, account);
- e_mail_shell_backend_remove_store_by_uri (
- global_mail_shell_backend, account->source->url);
+ e_mail_store_remove_by_uri (account->source->url);
}
static void
@@ -216,8 +213,7 @@ account_prefs_delete_account (EAccountManager *manager)
/* Remove the account from the folder tree. */
if (account->enabled && account->source && account->source->url)
- e_mail_shell_backend_remove_store_by_uri (
- global_mail_shell_backend, account->source->url);
+ e_mail_store_remove_by_uri (account->source->url);
/* Remove all the proxies the account has created. */
if (has_proxies)