[evolution-data-server] collection_backend_child_added: Inherit OAuth 2.0 support.
- From: Matthew Barnes <mbarnes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server] collection_backend_child_added: Inherit OAuth 2.0 support.
- Date: Mon, 31 Dec 2012 15:52:50 +0000 (UTC)
commit 12018115f127d9ea8145b0e3f83cb2d0ce761dff
Author: Matthew Barnes <mbarnes redhat com>
Date: Sat Dec 29 09:42:08 2012 -0500
collection_backend_child_added: Inherit OAuth 2.0 support.
Collection children will inherit the collection source's EOAuth2Support
object if set. That way OAuth 2.0 availability is consistent across the
entire collection, even if it's not USED by all sources in the collection.
libebackend/e-collection-backend.c | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/libebackend/e-collection-backend.c b/libebackend/e-collection-backend.c
index 0fc0af3..7a18cbb 100644
--- a/libebackend/e-collection-backend.c
+++ b/libebackend/e-collection-backend.c
@@ -709,12 +709,22 @@ static void
collection_backend_child_added (ECollectionBackend *backend,
ESource *child_source)
{
+ ESource *collection_source;
+
collection_backend_children_insert (backend, child_source);
collection_backend_bind_child_enabled (backend, child_source);
+ collection_source = e_backend_get_source (E_BACKEND (backend));
+
/* Collection children are not removable. */
e_server_side_source_set_removable (
E_SERVER_SIDE_SOURCE (child_source), FALSE);
+
+ /* Collection children inherit OAuth 2.0 support if available. */
+ g_object_bind_property (
+ collection_source, "oauth2-support",
+ child_source, "oauth2-support",
+ G_BINDING_SYNC_CREATE);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]