summaryrefslogtreecommitdiff
path: root/calendar/backends/http
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2012-07-31 18:07:02 -0400
committerMatthew Barnes <mbarnes@redhat.com>2012-07-31 18:08:48 -0400
commitc587590cc7f7825857d5429a6b2da6b6bf1ea05a (patch)
treea5ed9c1a2208c5ea2c408b470f5274115b81c7b5 /calendar/backends/http
parenta5b1bcec5985990a81b161ab108c61b74b556911 (diff)
downloadevolution-data-server-c587590cc7f7825857d5429a6b2da6b6bf1ea05a.tar.gz
Use e_backend_authenticate_sync() in backends.
Diffstat (limited to 'calendar/backends/http')
-rw-r--r--calendar/backends/http/e-cal-backend-http.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/calendar/backends/http/e-cal-backend-http.c b/calendar/backends/http/e-cal-backend-http.c
index 83cbfc26e..4337cb114 100644
--- a/calendar/backends/http/e-cal-backend-http.c
+++ b/calendar/backends/http/e-cal-backend-http.c
@@ -738,8 +738,6 @@ begin_retrieval_cb (GIOSchedulerJob *job,
GCancellable *cancellable,
ECalBackendHttp *backend)
{
- ESource *source;
- ESourceRegistry *registry;
const gchar *uri;
GError *error = NULL;
@@ -755,16 +753,13 @@ begin_retrieval_cb (GIOSchedulerJob *job,
backend->priv->is_loading = TRUE;
- source = e_backend_get_source (E_BACKEND (backend));
- registry = e_cal_backend_get_registry (E_CAL_BACKEND (backend));
-
uri = cal_backend_http_ensure_uri (backend);
cal_backend_http_load (backend, cancellable, uri, &error);
if (g_error_matches (error, SOUP_HTTP_ERROR, SOUP_STATUS_UNAUTHORIZED)) {
g_clear_error (&error);
- e_source_registry_authenticate_sync (
- registry, source,
+ e_backend_authenticate_sync (
+ E_BACKEND (backend),
E_SOURCE_AUTHENTICATOR (backend),
cancellable, &error);
}