aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2012-08-09 19:41:53 +0800
committerMatthew Barnes <mbarnes@redhat.com>2012-08-09 19:41:53 +0800
commitd783fee9aa918c59c3d2939916b847560b5f7bca (patch)
treea1dca1a615d056566f1a54a9745b5eccea905a57
parentc17e5b870e5c03887fa0dc158db382d827775c8c (diff)
downloadgsoc2013-evolution-d783fee9aa918c59c3d2939916b847560b5f7bca.tar
gsoc2013-evolution-d783fee9aa918c59c3d2939916b847560b5f7bca.tar.gz
gsoc2013-evolution-d783fee9aa918c59c3d2939916b847560b5f7bca.tar.bz2
gsoc2013-evolution-d783fee9aa918c59c3d2939916b847560b5f7bca.tar.lz
gsoc2013-evolution-d783fee9aa918c59c3d2939916b847560b5f7bca.tar.xz
gsoc2013-evolution-d783fee9aa918c59c3d2939916b847560b5f7bca.tar.zst
gsoc2013-evolution-d783fee9aa918c59c3d2939916b847560b5f7bca.zip
EMailSession: Minor code rearrangement.
-rw-r--r--libemail-engine/e-mail-session.c46
1 files changed, 23 insertions, 23 deletions
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
@@ -751,6 +751,29 @@ mail_session_configure_local_store (EMailSession *session)
}
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)
{
ESourceRegistry *registry;
@@ -981,29 +1004,6 @@ mail_session_dispose (GObject *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)
{
EMailSessionPrivate *priv;