[evolution-data-server] EBookBackendLDAP: Avoid deprecated EDS APIs.



commit 4dbb75a7216a5689ca4723bcee1a0b147e341da8
Author: Matthew Barnes <mbarnes redhat com>
Date:   Sat Mar 16 09:17:05 2013 -0400

    EBookBackendLDAP: Avoid deprecated EDS APIs.

 addressbook/backends/ldap/e-book-backend-ldap.c |   16 ++++++----------
 1 files changed, 6 insertions(+), 10 deletions(-)
---
diff --git a/addressbook/backends/ldap/e-book-backend-ldap.c b/addressbook/backends/ldap/e-book-backend-ldap.c
index 69f2354..e24ec26 100644
--- a/addressbook/backends/ldap/e-book-backend-ldap.c
+++ b/addressbook/backends/ldap/e-book-backend-ldap.c
@@ -5307,8 +5307,7 @@ e_book_backend_ldap_open (EBookBackend *backend,
        if (!e_backend_get_online (E_BACKEND (backend))) {
 
                /* Offline */
-               e_book_backend_notify_readonly (backend, TRUE);
-               e_book_backend_notify_online (backend, FALSE);
+               e_book_backend_set_writable (backend, FALSE);
 
                if (!bl->priv->marked_for_offline)
                        error = EDB_ERROR (OFFLINE_UNAVAILABLE);
@@ -5317,8 +5316,7 @@ e_book_backend_ldap_open (EBookBackend *backend,
                return;
        }
 
-       e_book_backend_notify_readonly (backend, FALSE);
-       e_book_backend_notify_online (backend, TRUE);
+       e_book_backend_set_writable (backend, TRUE);
 
        auth_required = e_source_authentication_required (auth_extension);
 
@@ -5408,15 +5406,13 @@ e_book_backend_ldap_notify_online_cb (EBookBackend *backend,
        if (!e_backend_get_online (E_BACKEND (backend))) {
                /* Go offline */
 
-               e_book_backend_notify_readonly (backend, TRUE);
-               e_book_backend_notify_online (backend, FALSE);
+               e_book_backend_set_writable (backend, FALSE);
 
                bl->priv->connected = FALSE;
        } else {
                /* Go online */
 
-               e_book_backend_notify_readonly (backend, FALSE);
-               e_book_backend_notify_online (backend, TRUE);
+               e_book_backend_set_writable (backend, TRUE);
 
                if (e_book_backend_is_opened (backend)) {
                        GError *error = NULL;
@@ -5686,8 +5682,8 @@ book_backend_ldap_try_password_sync (ESourceAuthenticator *authenticator,
 exit:
        switch (ldap_error) {
                case LDAP_SUCCESS:
-                       e_book_backend_notify_readonly (
-                               E_BOOK_BACKEND (authenticator), FALSE);
+                       e_book_backend_set_writable (
+                               E_BOOK_BACKEND (authenticator), TRUE);
 
                        /* force a requery on the root dse since some ldap
                         * servers are set up such that they don't report


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