From d783fee9aa918c59c3d2939916b847560b5f7bca Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Thu, 9 Aug 2012 07:41:53 -0400 Subject: EMailSession: Minor code rearrangement. --- libemail-engine/e-mail-session.c | 46 ++++++++++++++++++++-------------------- 1 file changed, 23 insertions(+), 23 deletions(-) (limited to 'libemail-engine') diff --git a/libemail-engine/e-mail-session.c b/libemail-engine/e-mail-session.c index 84ac60a736..ddeef06986 100644 --- a/libemail-engine/e-mail-session.c +++ b/libemail-engine/e-mail-session.c @@ -750,6 +750,29 @@ mail_session_configure_local_store (EMailSession *session) session->priv->local_store = g_object_ref (service); } +static void +mail_session_configure_vfolder_store (EMailSession *session) +{ + CamelSession *camel_session; + CamelService *service; + const gchar *uid; + + camel_session = CAMEL_SESSION (session); + + uid = E_MAIL_SESSION_VFOLDER_UID; + service = camel_session_get_service (camel_session, uid); + g_return_if_fail (CAMEL_IS_SERVICE (service)); + + camel_service_connect_sync (service, NULL, NULL); + + /* XXX There's more configuration to do in vfolder_load_storage() + * but it requires an EMailBackend, which we don't have access + * to from here, so it has to be called from elsewhere. Kinda + * thinking about reworking that... */ + + session->priv->vfolder_store = g_object_ref (service); +} + static void mail_session_force_refresh (EMailSession *session) { @@ -980,29 +1003,6 @@ mail_session_dispose (GObject *object) G_OBJECT_CLASS (e_mail_session_parent_class)->dispose (object); } -static void -mail_session_configure_vfolder_store (EMailSession *session) -{ - CamelSession *camel_session; - CamelService *service; - const gchar *uid; - - camel_session = CAMEL_SESSION (session); - - uid = E_MAIL_SESSION_VFOLDER_UID; - service = camel_session_get_service (camel_session, uid); - g_return_if_fail (CAMEL_IS_SERVICE (service)); - - camel_service_connect_sync (service, NULL, NULL); - - /* XXX There's more configuration to do in vfolder_load_storage() - * but it requires an EMailBackend, which we don't have access - * to from here, so it has to be called from elsewhere. Kinda - * thinking about reworking that... */ - - session->priv->vfolder_store = g_object_ref (service); -} - static void mail_session_finalize (GObject *object) { -- cgit v1.2.3