[evolution-data-server] ECalBackendHttp: Avoid deprecated EDS APIs.
- From: Matthew Barnes <mbarnes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server] ECalBackendHttp: Avoid deprecated EDS APIs.
- Date: Sun, 17 Mar 2013 13:41:49 +0000 (UTC)
commit 80a3bce872125406c5474d8cdc861380eeb70a08
Author: Matthew Barnes <mbarnes redhat com>
Date: Sat Mar 16 10:07:47 2013 -0400
ECalBackendHttp: Avoid deprecated EDS APIs.
calendar/backends/http/e-cal-backend-http.c | 11 ++---------
1 files changed, 2 insertions(+), 9 deletions(-)
---
diff --git a/calendar/backends/http/e-cal-backend-http.c b/calendar/backends/http/e-cal-backend-http.c
index eef1f8b..740b3b5 100644
--- a/calendar/backends/http/e-cal-backend-http.c
+++ b/calendar/backends/http/e-cal-backend-http.c
@@ -876,7 +876,6 @@ e_cal_backend_http_open (ECalBackendSync *backend,
const gchar *cache_dir;
gboolean auth_required;
gboolean opened = TRUE;
- gboolean online;
gchar *tmp;
GError *local_error = NULL;
@@ -928,12 +927,9 @@ e_cal_backend_http_open (ECalBackendSync *backend,
}
}
- e_cal_backend_notify_readonly (E_CAL_BACKEND (backend), TRUE);
-
- online = e_backend_get_online (E_BACKEND (backend));
- e_cal_backend_notify_online (E_CAL_BACKEND (backend), online);
+ e_cal_backend_set_writable (E_CAL_BACKEND (backend), FALSE);
- if (online) {
+ if (e_backend_get_online (E_BACKEND (backend))) {
const gchar *uri;
uri = cal_backend_http_ensure_uri (cbhttp);
@@ -1005,9 +1001,6 @@ e_cal_backend_http_notify_online_cb (ECalBackend *backend,
g_object_ref (backend),
(GDestroyNotify) g_object_unref,
G_PRIORITY_DEFAULT, NULL);
-
- if (loaded)
- e_cal_backend_notify_online (backend, online);
}
/* Get_object_component handler for the http backend */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]