aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/gnome-cal.c
diff options
context:
space:
mode:
authorVivek Jain <jvivek@novell.com>2005-02-03 21:28:11 +0800
committerJain Vivek <jvivek@src.gnome.org>2005-02-03 21:28:11 +0800
commit52b2d594c959af9a0e276b01148d7282951dc02f (patch)
tree5478232cadb72f6595ca2c8d4992ebd634c213a3 /calendar/gui/gnome-cal.c
parent9e0c55571c469803870d5265e8a300e691114123 (diff)
downloadgsoc2013-evolution-52b2d594c959af9a0e276b01148d7282951dc02f.tar
gsoc2013-evolution-52b2d594c959af9a0e276b01148d7282951dc02f.tar.gz
gsoc2013-evolution-52b2d594c959af9a0e276b01148d7282951dc02f.tar.bz2
gsoc2013-evolution-52b2d594c959af9a0e276b01148d7282951dc02f.tar.lz
gsoc2013-evolution-52b2d594c959af9a0e276b01148d7282951dc02f.tar.xz
gsoc2013-evolution-52b2d594c959af9a0e276b01148d7282951dc02f.tar.zst
gsoc2013-evolution-52b2d594c959af9a0e276b01148d7282951dc02f.zip
added a warning message for invalid server version added a case to check
2005-02-03 Vivek Jain <jvivek@novell.com> * 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
Diffstat (limited to 'calendar/gui/gnome-cal.c')
-rw-r--r--calendar/gui/gnome-cal.c10
1 files changed, 10 insertions, 0 deletions
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);