[evolution] EMailSession: Minor code rearrangement.



commit d783fee9aa918c59c3d2939916b847560b5f7bca
Author: Matthew Barnes <mbarnes redhat com>
Date:   Thu Aug 9 07:41:53 2012 -0400

    EMailSession: Minor code rearrangement.

 libemail-engine/e-mail-session.c |   46 +++++++++++++++++++-------------------
 1 files changed, 23 insertions(+), 23 deletions(-)
---
diff --git a/libemail-engine/e-mail-session.c b/libemail-engine/e-mail-session.c
index 84ac60a..ddeef06 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;



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