[evolution-groupwise] Adapt to e-mail-store.c API changes.



commit 997a22cf6f9a95bef0a504ecf426c93de255effe
Author: Matthew Barnes <mbarnes redhat com>
Date:   Wed Oct 26 12:40:08 2011 -0400

    Adapt to e-mail-store.c API changes.

 src/plugins/proxy-login.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/plugins/proxy-login.c b/src/plugins/proxy-login.c
index 8b868b2..42020c2 100644
--- a/src/plugins/proxy-login.c
+++ b/src/plugins/proxy-login.c
@@ -424,11 +424,14 @@ proxy_login_add_new_store (CamelStore *store,
 	EShell *shell;
 	EShellBackend *shell_backend;
 	EMailBackend *mail_backend;
+	EMailSession *mail_session;
 	gint permissions = GPOINTER_TO_INT(g_object_get_data ((GObject *)account, "permissions"));
 
 	shell = e_shell_get_default ();
 	shell_backend = e_shell_get_backend_by_name (shell, "mail");
+
 	mail_backend = E_MAIL_BACKEND (shell_backend);
+	mail_session = e_mail_backend_get_session (mail_backend);
 
 	if (store == NULL)
 		return;
@@ -437,7 +440,7 @@ proxy_login_add_new_store (CamelStore *store,
 		store->mode &= !CAMEL_STORE_WRITE;
 
 	store->flags |= CAMEL_STORE_PROXY;
-	e_mail_store_add (mail_backend, store);
+	e_mail_store_add (mail_session, store);
 }
 
 static void



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]