[evolution-data-server] collection_backend_child_added: Inherit the auth session type.
- From: Matthew Barnes <mbarnes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server] collection_backend_child_added: Inherit the auth session type.
- Date: Fri, 1 Feb 2013 19:17:23 +0000 (UTC)
commit a4463ce24a76af484a617b04e179a73f7fe0eabb
Author: Matthew Barnes <mbarnes redhat com>
Date: Fri Feb 1 13:34:19 2013 -0500
collection_backend_child_added: Inherit the auth session type.
Collection children will inherit the collection source's authentication
session type, so password-based authentication is consistent across the
entire collection.
libebackend/e-collection-backend.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/libebackend/e-collection-backend.c b/libebackend/e-collection-backend.c
index c760e86..22a8b27 100644
--- a/libebackend/e-collection-backend.c
+++ b/libebackend/e-collection-backend.c
@@ -719,6 +719,12 @@ collection_backend_child_added (ECollectionBackend *backend,
e_server_side_source_set_removable (
E_SERVER_SIDE_SOURCE (child_source), FALSE);
+ /* Collection children inherit the authentication session type. */
+ g_object_bind_property (
+ collection_source, "auth-session-type",
+ child_source, "auth-session-type",
+ G_BINDING_SYNC_CREATE);
+
/* Collection children inherit OAuth 2.0 support if available. */
g_object_bind_property (
collection_source, "oauth2-support",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]