diff options
author | Federico Mena Quintero <federico@src.gnome.org> | 2000-06-23 01:24:17 +0800 |
---|---|---|
committer | Federico Mena Quintero <federico@src.gnome.org> | 2000-06-23 01:24:17 +0800 |
commit | a3a3ee2b1456314989686ed356108b7356c0a272 (patch) | |
tree | 437bbf0e9af949208d07b547f852f377585f2f8e /calendar/gui/gncal-todo.c | |
parent | c14e8dd705e3483f2b0cf1fec2d754637d66b062 (diff) | |
download | gsoc2013-evolution-a3a3ee2b1456314989686ed356108b7356c0a272.tar.gz gsoc2013-evolution-a3a3ee2b1456314989686ed356108b7356c0a272.tar.zst gsoc2013-evolution-a3a3ee2b1456314989686ed356108b7356c0a272.zip |
Sync - Federico
svn path=/trunk/; revision=3693
Diffstat (limited to 'calendar/gui/gncal-todo.c')
-rw-r--r-- | calendar/gui/gncal-todo.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/calendar/gui/gncal-todo.c b/calendar/gui/gncal-todo.c index e3c25b9e53..fb662c4b3c 100644 --- a/calendar/gui/gncal-todo.c +++ b/calendar/gui/gncal-todo.c @@ -82,7 +82,9 @@ ok_button (GtkWidget *widget, GnomeDialog *dialog) ico->comment = gtk_editable_get_chars( GTK_EDITABLE(comment), 0, -1); ico->user_data = NULL; - gnome_calendar_update_object (todo->calendar, ico); + if (!cal_client_update_object (todo->calendar->client, ico)) + g_message ("ok_button(): Could not update the object!"); + ical_object_unref (ico); gtk_widget_destroy (GTK_WIDGET (dialog)); @@ -281,7 +283,9 @@ edit_todo (GncalTodo *todo) static void delete_todo (GncalTodo *todo) { - gnome_calendar_remove_object (todo->calendar, get_clist_selected_ico (todo->clist)); + if (!cal_client_remove_object (todo->calendar->client, + get_clist_selected_ico (todo->clist)->uid)) + g_message ("delete_todo(): Could not remove the object!"); } static void |