[evolution-kolab: 3/4] ECalBackendKolab: set KolabMailAccess online/offline state from backend
- From: Christian Hilberg <chilberg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-kolab: 3/4] ECalBackendKolab: set KolabMailAccess online/offline state from backend
- Date: Thu, 6 Sep 2012 14:54:03 +0000 (UTC)
commit 1b940ce1bf9292e288a53f6f01dce819e0edfd81
Author: Christian Hilberg <hilberg kernelconcepts de>
Date: Thu Sep 6 16:49:17 2012 +0200
ECalBackendKolab: set KolabMailAccess online/offline state from backend
* when opening a calendar, set the operational mode of the
associated KolabMailAccess instance accordind to the
backend online/offline state
src/calendar/e-cal-backend-kolab.c | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/src/calendar/e-cal-backend-kolab.c b/src/calendar/e-cal-backend-kolab.c
index 7a5338c..f693a93 100644
--- a/src/calendar/e-cal-backend-kolab.c
+++ b/src/calendar/e-cal-backend-kolab.c
@@ -350,6 +350,7 @@ cal_backend_kolab_open (ECalBackendSync *backend,
extension_name = E_SOURCE_EXTENSION_KOLAB_FOLDER;
extension = e_source_get_extension (esource, extension_name);
sync_value = e_source_kolab_folder_get_sync_strategy (extension);
+ online = e_backend_get_online (E_BACKEND (backend));
foldername = kolab_util_backend_get_foldername (E_BACKEND (backend));
@@ -373,7 +374,7 @@ cal_backend_kolab_open (ECalBackendSync *backend,
NULL,
foldername,
&sync_value);
-
+
(void) kolab_util_backend_deploy_mode_by_backend (priv->cal_koma,
online,
cancellable,
@@ -442,6 +443,10 @@ cal_backend_kolab_open (ECalBackendSync *backend,
*/
priv->user_email = g_strdup (user_at_server);
+ (void) kolab_util_backend_deploy_mode_by_backend (priv->cal_koma,
+ online,
+ cancellable,
+ &tmp_err);
exit:
if (ksettings != NULL)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]