+2004-05-27 Rodrigo Moya <rodrigo@novell.com>
+
+ Fixes #58197
+
+ * libedata-cal/e-cal-backend.c (e_cal_backend_create_object,
+ e_cal_backend_modify_object): removed assertions on method
+ implementations, since backends can perfectly have unimplemented
+ methods. Instead, notify the error.
+
2004-05-25 Sivaiah Nallagatla <snallagatla@novell.com>
* backends/groupwise/e-cal-backends-groupwise.c (form_uri) :
g_return_if_fail (E_IS_CAL_BACKEND (backend));
g_return_if_fail (calobj != NULL);
- g_assert (CLASS (backend)->create_object != NULL);
- (* CLASS (backend)->create_object) (backend, cal, calobj);
+ if (CLASS (backend)->create_object)
+ (* CLASS (backend)->create_object) (backend, cal, calobj);
+ else
+ e_data_cal_notify_object_created (cal, GNOME_Evolution_Calendar_PermissionDenied, NULL, NULL);
}
void
g_return_if_fail (E_IS_CAL_BACKEND (backend));
g_return_if_fail (calobj != NULL);
- g_assert (CLASS (backend)->modify_object != NULL);
- (* CLASS (backend)->modify_object) (backend, cal, calobj, mod);
+ if (CLASS (backend)->modify_object)
+ (* CLASS (backend)->modify_object) (backend, cal, calobj, mod);
+ else
+ e_data_cal_notify_object_removed (cal, GNOME_Evolution_Calendar_PermissionDenied, NULL, NULL);
}
/**