From a4463ce24a76af484a617b04e179a73f7fe0eabb Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Fri, 1 Feb 2013 13:34:19 -0500 Subject: [PATCH] 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 file changed, 6 insertions(+) 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", -- 2.7.4