[evolution-data-server] ECalBackendContacts: Avoid deprecated EDS APIs.
- From: Matthew Barnes <mbarnes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server] ECalBackendContacts: Avoid deprecated EDS APIs.
- Date: Sun, 17 Mar 2013 13:41:38 +0000 (UTC)
commit 9e561bed0c67990088dc05f1b2afec5f3c02ebf3
Author: Matthew Barnes <mbarnes redhat com>
Date: Sat Mar 16 09:50:00 2013 -0400
ECalBackendContacts: Avoid deprecated EDS APIs.
.../backends/contacts/e-cal-backend-contacts.c | 12 ++++--------
1 files changed, 4 insertions(+), 8 deletions(-)
---
diff --git a/calendar/backends/contacts/e-cal-backend-contacts.c
b/calendar/backends/contacts/e-cal-backend-contacts.c
index 254e519..5d14659 100644
--- a/calendar/backends/contacts/e-cal-backend-contacts.c
+++ b/calendar/backends/contacts/e-cal-backend-contacts.c
@@ -1115,13 +1115,9 @@ e_cal_backend_contacts_send_objects (ECalBackendSync *backend,
static void
e_cal_backend_contacts_notify_online_cb (ECalBackend *backend,
- gboolean is_online)
+ GParamSpec *pspec)
{
- gboolean online;
-
- online = e_backend_get_online (E_BACKEND (backend));
- e_cal_backend_notify_online (backend, online);
- e_cal_backend_notify_readonly (backend, TRUE);
+ e_cal_backend_set_writable (backend, FALSE);
}
static void
@@ -1138,8 +1134,8 @@ e_cal_backend_contacts_open (ECalBackendSync *backend,
return;
priv->addressbook_loaded = TRUE;
- e_cal_backend_notify_readonly (E_CAL_BACKEND (backend), TRUE);
- e_cal_backend_notify_online (E_CAL_BACKEND (backend), TRUE);
+ e_cal_backend_set_writable (E_CAL_BACKEND (backend), FALSE);
+ e_backend_set_online (E_BACKEND (backend), TRUE);
}
/* Add_timezone handler for the file backend */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]