aboutsummaryrefslogtreecommitdiffstats
path: root/mail/e-mail-backend.c
diff options
context:
space:
mode:
authorJonathon Jongsma <jonathon@quotidian.org>2009-12-18 05:38:50 +0800
committerJonathon Jongsma <jonathon@quotidian.org>2009-12-21 23:45:27 +0800
commitec626660cfc5e2869a02c621247a7e0b02508151 (patch)
treefd7317c520daeaf78d0d81cbc3ba320f9d582684 /mail/e-mail-backend.c
parentd153638ef6ea99b106fcb9f22c40496f3e75def5 (diff)
downloadgsoc2013-evolution-ec626660cfc5e2869a02c621247a7e0b02508151.tar.gz
gsoc2013-evolution-ec626660cfc5e2869a02c621247a7e0b02508151.tar.zst
gsoc2013-evolution-ec626660cfc5e2869a02c621247a7e0b02508151.zip
The shell backend is responsibile for setting the MailSession online
Previously the mail session set itself online inside mail_session_init() by checking whether the shell was online. This removes one more dependency from MailSession to EShell by moving that responsibility up one level. https://bugzilla.gnome.org/show_bug.cgi?id=604952
Diffstat (limited to 'mail/e-mail-backend.c')
-rw-r--r--mail/e-mail-backend.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/mail/e-mail-backend.c b/mail/e-mail-backend.c
index 30b691ef5c..dca721770e 100644
--- a/mail/e-mail-backend.c
+++ b/mail/e-mail-backend.c
@@ -387,6 +387,8 @@ mail_backend_constructed (GObject *object)
/* This also initializes Camel, so it needs to happen early. */
mail_session_init (shell_backend);
+
+ camel_session_set_online ((CamelSession *) session, e_shell_get_online (shell));
e_account_combo_box_set_session (session); /* XXX Don't ask... */
folder_cache = mail_folder_cache_get_default ();