From 174c942e0945a2017f0c479883dce2950e42e786 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Wed, 24 Jun 2009 00:40:49 -0400 Subject: Split store and local folder management out from shell backend. --- mail/em-account-prefs.c | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'mail/em-account-prefs.c') 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) -- cgit v1.2.3