[evolution-data-server] Use e_source_registry_server_new_auth_session().



commit f8a9b8250fa3e6136dc12caac876633ad475b67b
Author: Matthew Barnes <mbarnes redhat com>
Date:   Fri Feb 1 14:08:22 2013 -0500

    Use e_source_registry_server_new_auth_session().
    
    In place of e_authentication_session_new().

 libebackend/e-collection-backend.c     |    9 +++++----
 libebackend/e-source-registry-server.c |    2 +-
 2 files changed, 6 insertions(+), 5 deletions(-)
---
diff --git a/libebackend/e-collection-backend.c b/libebackend/e-collection-backend.c
index 22a8b27..984854f 100644
--- a/libebackend/e-collection-backend.c
+++ b/libebackend/e-collection-backend.c
@@ -652,7 +652,7 @@ collection_backend_constructed (GObject *object)
 
 static gboolean
 collection_backend_authenticate_sync (EBackend *backend,
-                                      ESourceAuthenticator *auth,
+                                      ESourceAuthenticator *authenticator,
                                       GCancellable *cancellable,
                                       GError **error)
 {
@@ -660,15 +660,16 @@ collection_backend_authenticate_sync (EBackend *backend,
 	ESourceRegistryServer *server;
 	EAuthenticationSession *session;
 	ESource *source;
-	const gchar *uid;
+	const gchar *source_uid;
 	gboolean success;
 
 	source = e_backend_get_source (backend);
-	uid = e_source_get_uid (source);
+	source_uid = e_source_get_uid (source);
 
 	collection_backend = E_COLLECTION_BACKEND (backend);
 	server = e_collection_backend_ref_server (collection_backend);
-	session = e_authentication_session_new (server, auth, uid);
+	session = e_source_registry_server_new_auth_session (
+		server, authenticator, source_uid);
 
 	success = e_source_registry_server_authenticate_sync (
 		server, session, cancellable, error);
diff --git a/libebackend/e-source-registry-server.c b/libebackend/e-source-registry-server.c
index e0db5b3..d955ce7 100644
--- a/libebackend/e-source-registry-server.c
+++ b/libebackend/e-source-registry-server.c
@@ -707,7 +707,7 @@ source_registry_server_authenticate_cb (EDBusSourceManager *interface,
 		E_IS_SOURCE_AUTHENTICATOR (authenticator), FALSE);
 
 	/* Create the authentication session. */
-	session = e_authentication_session_new (
+	session = e_source_registry_server_new_auth_session (
 		server, authenticator, source_uid);
 
 	/* Configure the authentication session. */



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]