aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui
diff options
context:
space:
mode:
authorGustavo Noronha Silva <gustavo.noronha@collabora.co.uk>2010-01-23 04:14:32 +0800
committerGustavo Noronha Silva <gustavo.noronha@collabora.co.uk>2010-01-27 21:23:36 +0800
commitd635b839f8d22746f44067464dc3c645aeeb8591 (patch)
tree066ae5e4f73ee2ff96d1ca5d6f3885213d1c3d44 /calendar/gui
parent0e06ff46d0cc53ae2108219490c0bb9c7106d33a (diff)
downloadgsoc2013-evolution-d635b839f8d22746f44067464dc3c645aeeb8591.tar.gz
gsoc2013-evolution-d635b839f8d22746f44067464dc3c645aeeb8591.tar.zst
gsoc2013-evolution-d635b839f8d22746f44067464dc3c645aeeb8591.zip
Make authentication functionality available
This involves renaming the calendar auth-related functions to have a prefix, and shipping the headers. Part of https://bugzilla.gnome.org/show_bug.cgi?id=608175
Diffstat (limited to 'calendar/gui')
-rw-r--r--calendar/gui/alarm-notify/alarm-notify.c2
-rw-r--r--calendar/gui/comp-util.c2
-rw-r--r--calendar/gui/dialogs/copy-source-dialog.c4
-rw-r--r--calendar/gui/dialogs/event-page.c2
-rw-r--r--calendar/gui/dialogs/memo-page.c2
-rw-r--r--calendar/gui/dialogs/task-page.c2
-rw-r--r--calendar/gui/e-calendar-selector.c2
-rw-r--r--calendar/gui/e-itip-control.c2
-rw-r--r--calendar/gui/e-memo-list-selector.c4
-rw-r--r--calendar/gui/e-task-list-selector.c4
-rw-r--r--calendar/gui/gnome-cal.c6
11 files changed, 16 insertions, 16 deletions
diff --git a/calendar/gui/alarm-notify/alarm-notify.c b/calendar/gui/alarm-notify/alarm-notify.c
index 5651a61182..7ad414c61c 100644
--- a/calendar/gui/alarm-notify/alarm-notify.c
+++ b/calendar/gui/alarm-notify/alarm-notify.c
@@ -384,7 +384,7 @@ alarm_notify_add_calendar (AlarmNotify *an, ECalSourceType source_type, ESource
}
}
- client = auth_new_cal_from_source (source, source_type);
+ client = e_auth_new_cal_from_source (source, source_type);
if (client) {
d (printf("%s:%d (alarm_notify_add_calendar) %s - Calendar Open Async... %p\n", __FILE__, __LINE__, str_uri, client));
diff --git a/calendar/gui/comp-util.c b/calendar/gui/comp-util.c
index c5254a427f..a8fa9aef72 100644
--- a/calendar/gui/comp-util.c
+++ b/calendar/gui/comp-util.c
@@ -749,7 +749,7 @@ cal_comp_process_source_list_drop (ECal *destination, icalcomponent *comp, GdkDr
source_source = e_source_list_peek_source_by_uid (source_list, source_uid);
if (source_source && !E_IS_SOURCE_GROUP (source_source) && !e_source_get_readonly (source_source)) {
- source_client = auth_new_cal_from_source (source_source, e_cal_get_source_type (destination));
+ source_client = e_auth_new_cal_from_source (source_source, e_cal_get_source_type (destination));
if (source_client) {
gboolean read_only = TRUE;
diff --git a/calendar/gui/dialogs/copy-source-dialog.c b/calendar/gui/dialogs/copy-source-dialog.c
index 095d10131d..aafe66a90f 100644
--- a/calendar/gui/dialogs/copy-source-dialog.c
+++ b/calendar/gui/dialogs/copy-source-dialog.c
@@ -86,7 +86,7 @@ copy_source (CopySourceDialogData *csdd)
return FALSE;
/* open the source */
- source_client = auth_new_cal_from_source (csdd->orig_source, csdd->obj_type);
+ source_client = e_auth_new_cal_from_source (csdd->orig_source, csdd->obj_type);
if (!e_cal_open (source_client, TRUE, NULL)) {
show_error (NULL, _("Could not open source"));
g_object_unref (source_client);
@@ -94,7 +94,7 @@ copy_source (CopySourceDialogData *csdd)
}
/* open the destination */
- dest_client = auth_new_cal_from_source (csdd->selected_source, csdd->obj_type);
+ dest_client = e_auth_new_cal_from_source (csdd->selected_source, csdd->obj_type);
if (!e_cal_open (dest_client, FALSE, NULL)) {
show_error (NULL, _("Could not open destination"));
g_object_unref (dest_client);
diff --git a/calendar/gui/dialogs/event-page.c b/calendar/gui/dialogs/event-page.c
index b10932d0ad..bef407c8dd 100644
--- a/calendar/gui/dialogs/event-page.c
+++ b/calendar/gui/dialogs/event-page.c
@@ -2564,7 +2564,7 @@ source_changed_cb (ESourceComboBox *source_combo_box, EventPage *epage)
editor = comp_editor_page_get_editor (COMP_EDITOR_PAGE (epage));
source = e_source_combo_box_get_active (source_combo_box);
- client = auth_new_cal_from_source (source, E_CAL_SOURCE_TYPE_EVENT);
+ client = e_auth_new_cal_from_source (source, E_CAL_SOURCE_TYPE_EVENT);
if (client) {
icaltimezone *zone;
diff --git a/calendar/gui/dialogs/memo-page.c b/calendar/gui/dialogs/memo-page.c
index 949836a330..f5c6a26400 100644
--- a/calendar/gui/dialogs/memo-page.c
+++ b/calendar/gui/dialogs/memo-page.c
@@ -855,7 +855,7 @@ source_changed_cb (ESourceComboBox *source_combo_box,
flags = comp_editor_get_flags (editor);
source = e_source_combo_box_get_active (source_combo_box);
- client = auth_new_cal_from_source (source, E_CAL_SOURCE_TYPE_JOURNAL);
+ client = e_auth_new_cal_from_source (source, E_CAL_SOURCE_TYPE_JOURNAL);
if (!client || !e_cal_open (client, FALSE, NULL)) {
GtkWidget *dialog;
diff --git a/calendar/gui/dialogs/task-page.c b/calendar/gui/dialogs/task-page.c
index 5bff292b37..33413250ad 100644
--- a/calendar/gui/dialogs/task-page.c
+++ b/calendar/gui/dialogs/task-page.c
@@ -1675,7 +1675,7 @@ source_changed_cb (ESourceComboBox *source_combo_box, TaskPage *tpage)
if (comp_editor_page_get_updating (COMP_EDITOR_PAGE (tpage)))
return;
- client = auth_new_cal_from_source (source, E_CAL_SOURCE_TYPE_TODO);
+ client = e_auth_new_cal_from_source (source, E_CAL_SOURCE_TYPE_TODO);
if (client) {
icaltimezone *zone;
diff --git a/calendar/gui/e-calendar-selector.c b/calendar/gui/e-calendar-selector.c
index d46b4dad18..14c635b698 100644
--- a/calendar/gui/e-calendar-selector.c
+++ b/calendar/gui/e-calendar-selector.c
@@ -131,7 +131,7 @@ calendar_selector_data_dropped (ESourceSelector *selector,
icalcomponent_set_uid (icalcomp, uid);
}
- client = auth_new_cal_from_source (
+ client = e_auth_new_cal_from_source (
destination, E_CAL_SOURCE_TYPE_EVENT);
if (client != NULL) {
diff --git a/calendar/gui/e-itip-control.c b/calendar/gui/e-itip-control.c
index d1fe75a32d..c941310a2e 100644
--- a/calendar/gui/e-itip-control.c
+++ b/calendar/gui/e-itip-control.c
@@ -184,7 +184,7 @@ start_calendar_server (EItipControl *itip, ESource *source, ECalSourceType type,
return ecal;
}
- ecal = auth_new_cal_from_source (source, type);
+ ecal = e_auth_new_cal_from_source (source, type);
zone = calendar_config_get_icaltimezone ();
e_cal_set_default_timezone (ecal, zone, NULL);
diff --git a/calendar/gui/e-memo-list-selector.c b/calendar/gui/e-memo-list-selector.c
index e31a9d4b6e..d84a70b3b3 100644
--- a/calendar/gui/e-memo-list-selector.c
+++ b/calendar/gui/e-memo-list-selector.c
@@ -156,7 +156,7 @@ memo_list_selector_process_data (ESourceSelector *selector,
if (!E_IS_SOURCE (source) || e_source_get_readonly (source))
goto exit;
- client = auth_new_cal_from_source (source, E_CAL_SOURCE_TYPE_JOURNAL);
+ client = e_auth_new_cal_from_source (source, E_CAL_SOURCE_TYPE_JOURNAL);
if (client == NULL) {
g_message ("Cannot create source client to remove old memo");
goto exit;
@@ -187,7 +187,7 @@ memo_list_selector_data_dropped (ESourceSelector *selector,
GSList *list, *iter;
gboolean success = FALSE;
- client = auth_new_cal_from_source (
+ client = e_auth_new_cal_from_source (
destination, E_CAL_SOURCE_TYPE_JOURNAL);
if (client == NULL || !e_cal_open (client, TRUE, NULL))
diff --git a/calendar/gui/e-task-list-selector.c b/calendar/gui/e-task-list-selector.c
index fa6bd328d9..34432b0ed4 100644
--- a/calendar/gui/e-task-list-selector.c
+++ b/calendar/gui/e-task-list-selector.c
@@ -157,7 +157,7 @@ task_list_selector_process_data (ESourceSelector *selector,
if (!E_IS_SOURCE (source) || e_source_get_readonly (source))
goto exit;
- client = auth_new_cal_from_source (source, E_CAL_SOURCE_TYPE_TODO);
+ client = e_auth_new_cal_from_source (source, E_CAL_SOURCE_TYPE_TODO);
if (client == NULL) {
g_message ("Cannot create source client to remove old task");
goto exit;
@@ -188,7 +188,7 @@ task_list_selector_data_dropped (ESourceSelector *selector,
GSList *list, *iter;
gboolean success = FALSE;
- client = auth_new_cal_from_source (
+ client = e_auth_new_cal_from_source (
destination, E_CAL_SOURCE_TYPE_TODO);
if (client == NULL || !e_cal_open (client, TRUE, NULL))
diff --git a/calendar/gui/gnome-cal.c b/calendar/gui/gnome-cal.c
index 6521d8d5d5..ea87a840f6 100644
--- a/calendar/gui/gnome-cal.c
+++ b/calendar/gui/gnome-cal.c
@@ -1876,7 +1876,7 @@ client_cal_opened_cb (ECal *ecal, ECalendarStatus status, GnomeCalendar *gcal)
state = e_cal_get_load_state (ecal);
if (status == E_CALENDAR_STATUS_AUTHENTICATION_FAILED || status == E_CALENDAR_STATUS_AUTHENTICATION_REQUIRED)
- auth_cal_forget_password (ecal);
+ e_auth_cal_forget_password (ecal);
switch (status) {
case E_CALENDAR_STATUS_OK:
@@ -1967,7 +1967,7 @@ default_client_cal_opened_cb (ECal *ecal, ECalendarStatus status, GnomeCalendar
state = e_cal_get_load_state (ecal);
if (status == E_CALENDAR_STATUS_AUTHENTICATION_FAILED || status == E_CALENDAR_STATUS_AUTHENTICATION_REQUIRED)
- auth_cal_forget_password (ecal);
+ e_auth_cal_forget_password (ecal);
switch (status) {
case E_CALENDAR_STATUS_OK:
@@ -2277,7 +2277,7 @@ gnome_calendar_set_default_source (GnomeCalendar *gcal, ESource *source)
if (client) {
priv->default_client = g_object_ref (client);
} else {
- priv->default_client = auth_new_cal_from_source (source, E_CAL_SOURCE_TYPE_EVENT);
+ priv->default_client = e_auth_new_cal_from_source (source, E_CAL_SOURCE_TYPE_EVENT);
if (!priv->default_client)
return FALSE;
}