[evolution-ews] Avoid deprecated E-D-S APIs.
- From: Matthew Barnes <mbarnes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-ews] Avoid deprecated E-D-S APIs.
- Date: Wed, 30 Jan 2013 03:25:21 +0000 (UTC)
commit 8d926654a259e2bfea74c51a8472cd29ea97cfa2
Author: Matthew Barnes <mbarnes redhat com>
Date: Tue Jan 29 22:25:18 2013 -0500
Avoid deprecated E-D-S APIs.
src/addressbook/e-book-backend-ews.c | 14 ++++++--------
src/calendar/e-cal-backend-ews.c | 12 +++++-------
2 files changed, 11 insertions(+), 15 deletions(-)
---
diff --git a/src/addressbook/e-book-backend-ews.c b/src/addressbook/e-book-backend-ews.c
index eff2048..c4a5250 100644
--- a/src/addressbook/e-book-backend-ews.c
+++ b/src/addressbook/e-book-backend-ews.c
@@ -2770,8 +2770,7 @@ e_book_backend_ews_notify_online_cb (EBookBackend *backend,
}
if (!e_backend_get_online (E_BACKEND (backend))) {
- e_book_backend_notify_readonly (backend, TRUE);
- e_book_backend_notify_online (backend, FALSE);
+ e_book_backend_set_writable (backend, FALSE);
if (ebews->priv->cnc) {
g_object_unref (ebews->priv->cnc);
ebews->priv->cnc = NULL;
@@ -2779,8 +2778,7 @@ e_book_backend_ews_notify_online_cb (EBookBackend *backend,
} else {
ebews->priv->cancellable = g_cancellable_new ();
- e_book_backend_notify_readonly (backend, !ebews->priv->is_writable);
- e_book_backend_notify_online (backend, TRUE);
+ e_book_backend_set_writable (backend, ebews->priv->is_writable);
}
}
}
@@ -2877,7 +2875,7 @@ e_book_backend_ews_open (EBookBackend *backend,
}
convert_error_to_edb_error (&error);
- e_book_backend_respond_opened (backend, book, opid, error);
+ e_data_book_respond_open (book, opid, error);
}
/**
@@ -2997,13 +2995,13 @@ book_backend_ews_try_password_sync (ESourceAuthenticator *authenticator,
PRIV_UNLOCK (backend->priv);
- e_book_backend_notify_online (E_BOOK_BACKEND (backend), TRUE);
+ e_backend_set_online (E_BACKEND (backend), TRUE);
} else {
backend->priv->is_writable = FALSE;
- e_book_backend_notify_online (E_BOOK_BACKEND (backend), FALSE);
+ e_backend_set_online (E_BACKEND (backend), FALSE);
}
- e_book_backend_notify_readonly (E_BOOK_BACKEND (backend), !backend->priv->is_writable);
+ e_book_backend_set_writable (E_BOOK_BACKEND (backend), backend->priv->is_writable);
g_object_unref (connection);
diff --git a/src/calendar/e-cal-backend-ews.c b/src/calendar/e-cal-backend-ews.c
index bf9d534..8e07583 100644
--- a/src/calendar/e-cal-backend-ews.c
+++ b/src/calendar/e-cal-backend-ews.c
@@ -609,10 +609,10 @@ e_cal_backend_ews_open (ECalBackend *backend,
cancellable, &error);
if (!error)
- e_cal_backend_notify_readonly (backend, FALSE);
+ e_cal_backend_set_writable (backend, TRUE);
convert_error_to_edc_error (&error);
- e_cal_backend_respond_opened (backend, cal, opid, error);
+ e_data_cal_respond_open (cal, opid, error);
}
static void
@@ -3626,7 +3626,7 @@ ews_start_sync_thread (gpointer data)
}
if (!g_error_matches (error, EWS_CONNECTION_ERROR, EWS_CONNECTION_ERROR_AUTHENTICATION_FAILED))
- e_cal_backend_notify_readonly (E_CAL_BACKEND (cbews), FALSE);
+ e_cal_backend_set_writable (E_CAL_BACKEND (cbews), TRUE);
if (error == NULL) {
cal_backend_ews_process_folder_items (
@@ -4034,12 +4034,10 @@ e_cal_backend_ews_notify_online_cb (ECalBackend *backend,
priv->cancellable = g_cancellable_new ();
priv->read_only = FALSE;
- e_cal_backend_notify_online (backend, TRUE);
- e_cal_backend_notify_readonly (backend, priv->read_only);
+ e_cal_backend_set_writable (backend, !priv->read_only);
} else {
switch_offline (E_CAL_BACKEND_EWS (backend));
- e_cal_backend_notify_readonly (backend, priv->read_only);
- e_cal_backend_notify_online (backend, FALSE);
+ e_cal_backend_set_writable (backend, !priv->read_only);
}
PRIV_UNLOCK (priv);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]