fix the return value, it was returning ECalendarStatus instead of bool, it
authorRadek Doulik <rodo@ximian.com>
Thu, 15 Jan 2004 13:40:25 +0000 (13:40 +0000)
committerRadek Doulik <rodo@src.gnome.org>
Thu, 15 Jan 2004 13:40:25 +0000 (13:40 +0000)
2004-01-15  Radek Doulik  <rodo@ximian.com>

* libecal/e-cal.c (e_cal_is_read_only): fix the return value, it
was returning ECalendarStatus instead of bool, it compares status
to E_CALENDAR_STATUS_OK now

calendar/ChangeLog
calendar/libecal/e-cal.c

index 12f2201..0ce816a 100644 (file)
@@ -1,3 +1,9 @@
+2004-01-15  Radek Doulik  <rodo@ximian.com>
+
+       * libecal/e-cal.c (e_cal_is_read_only): fix the return value, it
+       was returning ECalendarStatus instead of bool, it compares status
+       to E_CALENDAR_STATUS_OK now
+
 2004-01-14  Rodrigo Moya <rodrigo@ximian.com>
 
        * backends/groupwise/e-cal-backend-groupwise.c
index 32fd6c6..a3af4a4 100644 (file)
@@ -1749,7 +1749,7 @@ e_cal_is_read_only (ECal *ecal, gboolean *read_only, GError **error)
        g_mutex_unlock (our_op->mutex);
        e_calendar_free_op (our_op);
 
-       return status;
+       return status == E_CALENDAR_STATUS_OK;
 }
 
 /**