From 3441e17ab919b707fea1920feef7cc43874fec2e Mon Sep 17 00:00:00 2001 From: Federico Mena Quintero Date: Fri, 1 Sep 2000 02:55:13 +0000 Subject: No need to spit a warning if removal fails. (event_editor_destroy): Free 2000-08-31 Federico Mena Quintero * gui/event-editor.c (file_delete_cb): No need to spit a warning if removal fails. (event_editor_destroy): Free the exception clist data. Unref the calendar client here. (close_dialog): Just call gtk_object_destroy() on the event editor; the destroy handler will free everything else. * cal-client/cal-client.c (cal_client_object_exists): Removed function; this is not useful because we operate asynchronously. * gui/e-day-view.c (e_day_view_on_delete_appointment): No need to spit a warning if removal fails. * gui/e-week-view.c (e_week_view_on_delete_appointment): Likewise. * gui/calendar-model.c (calendar_model_delete_task): Likewise. svn path=/trunk/; revision=5155 --- calendar/gui/calendar-model.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'calendar/gui/calendar-model.c') diff --git a/calendar/gui/calendar-model.c b/calendar/gui/calendar-model.c index 8a6eae5445..51f2c28a35 100644 --- a/calendar/gui/calendar-model.c +++ b/calendar/gui/calendar-model.c @@ -1763,8 +1763,10 @@ calendar_model_delete_task (CalendarModel *model, cal_component_get_uid (comp, &uid); - if (!cal_client_remove_object (priv->client, uid)) - g_message ("calendar_model_delete_task(): Could not remove the object!"); + /* We don't check the return value; FALSE can mean the object was not in + * the server anyways. + */ + cal_client_remove_object (priv->client, uid); } -- cgit v1.2.3