aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/calendar-offline-handler.c
diff options
context:
space:
mode:
Diffstat (limited to 'calendar/gui/calendar-offline-handler.c')
-rw-r--r--calendar/gui/calendar-offline-handler.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/calendar/gui/calendar-offline-handler.c b/calendar/gui/calendar-offline-handler.c
index 4faf15bf7e..99257c3ca7 100644
--- a/calendar/gui/calendar-offline-handler.c
+++ b/calendar/gui/calendar-offline-handler.c
@@ -34,6 +34,7 @@
#include "e-util/e-url.h"
#include <libecal/e-cal.h>
#include "calendar-offline-handler.h"
+#include "common/authentication.h"
#define PARENT_TYPE bonobo_object_get_type ()
static BonoboObjectClass *parent_class = NULL;
@@ -184,7 +185,7 @@ backend_go_offline (gpointer data, gpointer user_data)
GError *error = NULL;
/* FIXME This should not use LAST */
- client = e_cal_new_from_uri (uri, E_CAL_SOURCE_TYPE_LAST);
+ client = auth_new_cal_from_uri (uri, E_CAL_SOURCE_TYPE_LAST);
g_signal_connect (client, "cal_opened", G_CALLBACK (backend_cal_opened_offline), offline_handler);
success = e_cal_open (client, TRUE, &error);
if (!success) {
@@ -206,7 +207,7 @@ backend_go_online (gpointer data, gpointer user_data)
GError *error = NULL;
/* FIXME This should not use LAST */
- client = e_cal_new_from_uri (uri, E_CAL_SOURCE_TYPE_LAST);
+ client = auth_new_cal_from_uri (uri, E_CAL_SOURCE_TYPE_LAST);
g_signal_connect (G_OBJECT (client), "cal_opened",
G_CALLBACK (backend_cal_opened_online), offline_handler);
success = e_cal_open (client, TRUE, &error);
@@ -330,7 +331,7 @@ calendar_offline_handler_init (CalendarOfflineHandler *offline_handler)
/* FIXME This should not use LAST */
/* FIXME: what URI to use? */
- priv->client = e_cal_new_from_uri ("", E_CAL_SOURCE_TYPE_LAST);
+ priv->client = auth_new_cal_from_uri ("", E_CAL_SOURCE_TYPE_LAST);
priv->listener_interface = CORBA_OBJECT_NIL;
priv->is_offline = FALSE;
}