[evolution-mapi] Report readonly and online states from backends in open functions
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-mapi] Report readonly and online states from backends in open functions
- Date: Mon, 27 Jun 2011 08:44:06 +0000 (UTC)
commit 4f87be2afa8d65490f79968bfb24f300c6a100f3
Author: Milan Crha <mcrha redhat com>
Date: Mon Jun 27 10:43:23 2011 +0200
Report readonly and online states from backends in open functions
src/addressbook/e-book-backend-mapi.c | 2 ++
src/calendar/e-cal-backend-mapi.c | 4 ++++
2 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/addressbook/e-book-backend-mapi.c b/src/addressbook/e-book-backend-mapi.c
index ca11b22..cab80bb 100644
--- a/src/addressbook/e-book-backend-mapi.c
+++ b/src/addressbook/e-book-backend-mapi.c
@@ -440,10 +440,12 @@ ebbm_open (EBookBackendMAPI *ebma, GCancellable *cancellable, gboolean only_if_e
/* Once aunthentication in address book works this can be removed */
if (!e_book_backend_is_online (E_BOOK_BACKEND (ebma))) {
+ e_book_backend_notify_online (E_BOOK_BACKEND (ebma), FALSE);
e_book_backend_notify_opened (E_BOOK_BACKEND (ebma), NULL /* Success */);
return;
}
+ e_book_backend_notify_online (E_BOOK_BACKEND (ebma), TRUE);
e_book_backend_notify_auth_required (E_BOOK_BACKEND (ebma), TRUE, NULL);
}
diff --git a/src/calendar/e-cal-backend-mapi.c b/src/calendar/e-cal-backend-mapi.c
index 29a5ad2..f2be0ad 100644
--- a/src/calendar/e-cal-backend-mapi.c
+++ b/src/calendar/e-cal-backend-mapi.c
@@ -1479,6 +1479,8 @@ ecbm_open (ECalBackend *backend, EDataCal *cal, GCancellable *cancellable, gbool
}
g_mutex_unlock (priv->mutex);
+ e_cal_backend_notify_online (backend, FALSE);
+ e_cal_backend_notify_readonly (backend, priv->read_only);
e_cal_backend_notify_opened (backend, NULL);
return /* Success */;
}
@@ -1494,6 +1496,8 @@ ecbm_open (ECalBackend *backend, EDataCal *cal, GCancellable *cancellable, gbool
g_mutex_unlock (priv->mutex);
+ e_cal_backend_notify_online (backend, TRUE);
+ e_cal_backend_notify_readonly (backend, priv->read_only);
e_cal_backend_notify_auth_required (backend, TRUE, NULL);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]