From 52b2d594c959af9a0e276b01148d7282951dc02f Mon Sep 17 00:00:00 2001 From: Vivek Jain Date: Thu, 3 Feb 2005 13:28:11 +0000 Subject: added a warning message for invalid server version added a case to check 2005-02-03 Vivek Jain * calendar-errors.xml : added a warning message for invalid server version * gui/gnome-cal.c (default_client_cal_opened_cb) (client_cal_opened_cb): added a case to check the call status and display warning svn path=/trunk/; revision=28686 --- calendar/gui/gnome-cal.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'calendar/gui') diff --git a/calendar/gui/gnome-cal.c b/calendar/gui/gnome-cal.c index c618ea143a..a01e26b6a2 100644 --- a/calendar/gui/gnome-cal.c +++ b/calendar/gui/gnome-cal.c @@ -2184,6 +2184,11 @@ client_cal_opened_cb (ECal *ecal, ECalendarStatus status, GnomeCalendar *gcal) if (status == E_CALENDAR_STATUS_BUSY) return; + + if (status == E_CALENDAR_STATUS_INVALID_SERVER_VERSION) { + e_error_run (NULL, "calendar:server-version", NULL); + status = E_CALENDAR_STATUS_OK; + } if (status != E_CALENDAR_STATUS_OK) { /* Make sure the source doesn't disappear on us */ g_object_ref (source); @@ -2265,6 +2270,11 @@ default_client_cal_opened_cb (ECal *ecal, ECalendarStatus status, GnomeCalendar if (status == E_CALENDAR_STATUS_BUSY) return; + if (status == E_CALENDAR_STATUS_INVALID_SERVER_VERSION) { + e_error_run (NULL, "calendar:server-version", NULL); + status = E_CALENDAR_STATUS_OK; + } + if (status != E_CALENDAR_STATUS_OK) { /* Make sure the source doesn't disappear on us */ g_object_ref (source); -- cgit v1.2.3