aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/comp-editor-factory.c
diff options
context:
space:
mode:
authorJP Rosevear <jpr@ximian.com>2003-11-12 01:11:09 +0800
committerJP Rosevear <jpr@src.gnome.org>2003-11-12 01:11:09 +0800
commit6f57f92231266e6b194cf630851d4ac481cd43c1 (patch)
treeef966ea2b1431f27282279a07729463b42592066 /calendar/gui/comp-editor-factory.c
parent4ea4ea5d280f641bb5f3b6b3d1a8c05960e59bea (diff)
downloadgsoc2013-evolution-6f57f92231266e6b194cf630851d4ac481cd43c1.tar
gsoc2013-evolution-6f57f92231266e6b194cf630851d4ac481cd43c1.tar.gz
gsoc2013-evolution-6f57f92231266e6b194cf630851d4ac481cd43c1.tar.bz2
gsoc2013-evolution-6f57f92231266e6b194cf630851d4ac481cd43c1.tar.lz
gsoc2013-evolution-6f57f92231266e6b194cf630851d4ac481cd43c1.tar.xz
gsoc2013-evolution-6f57f92231266e6b194cf630851d4ac481cd43c1.tar.zst
gsoc2013-evolution-6f57f92231266e6b194cf630851d4ac481cd43c1.zip
use a standard calendar status (backend_cal_opened_online): ditto
2003-11-11 JP Rosevear <jpr@ximian.com> * gui/calendar-offline-handler.c (backend_cal_opened_offline): use a standard calendar status (backend_cal_opened_online): ditto * gui/alarm-notify/alarm-queue.c (cal_opened_cb): ditto * gui/gnome-cal.c (client_cal_opened_cb): ditto * gui/e-tasks.c (cal_opened_cb): ditto * gui/e-itip-control.c (default_server_started_cb): ditto * gui/e-cal-model.c (cal_opened_cb): ditto * gui/comp-editor-factory.c (cal_opened_cb): ditto svn path=/trunk/; revision=23286
Diffstat (limited to 'calendar/gui/comp-editor-factory.c')
-rw-r--r--calendar/gui/comp-editor-factory.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/calendar/gui/comp-editor-factory.c b/calendar/gui/comp-editor-factory.c
index ffb26a831c..d85a2a0f97 100644
--- a/calendar/gui/comp-editor-factory.c
+++ b/calendar/gui/comp-editor-factory.c
@@ -428,7 +428,7 @@ resolve_pending_requests (OpenClient *oc)
* requests.
*/
static void
-cal_opened_cb (ECal *client, ECalOpenStatus status, gpointer data)
+cal_opened_cb (ECal *client, ECalendarStatus status, gpointer data)
{
OpenClient *oc;
CompEditorFactory *factory;
@@ -440,29 +440,29 @@ cal_opened_cb (ECal *client, ECalOpenStatus status, gpointer data)
priv = factory->priv;
switch (status) {
- case E_CAL_OPEN_SUCCESS:
+ case E_CALENDAR_STATUS_OK:
oc->open = TRUE;
resolve_pending_requests (oc);
return;
- case E_CAL_OPEN_ERROR:
+ case E_CALENDAR_STATUS_OTHER_ERROR:
dialog = gtk_message_dialog_new (NULL, GTK_DIALOG_MODAL,
GTK_MESSAGE_ERROR, GTK_BUTTONS_CLOSE,
_("Error while opening the calendar"));
break;
- case E_CAL_OPEN_NOT_FOUND:
- /* bullshit; we specified only_if_exists = FALSE */
+ case E_CALENDAR_STATUS_NO_SUCH_CALENDAR:
+ /* oops - we specified only_if_exists = FALSE */
g_assert_not_reached ();
return;
- case E_CAL_OPEN_METHOD_NOT_SUPPORTED:
+ case E_CALENDAR_STATUS_PROTOCOL_NOT_SUPPORTED:
dialog = gtk_message_dialog_new (NULL, GTK_DIALOG_MODAL,
GTK_MESSAGE_ERROR, GTK_BUTTONS_CLOSE,
_("Method not supported when opening the calendar"));
break;
- case E_CAL_OPEN_PERMISSION_DENIED :
+ case E_CALENDAR_STATUS_PERMISSION_DENIED :
dialog = gtk_message_dialog_new (NULL, GTK_DIALOG_MODAL,
GTK_MESSAGE_ERROR, GTK_BUTTONS_CLOSE,
_("Permission denied to open the calendar"));