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/gnome-cal.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/gnome-cal.c')
-rw-r--r-- | calendar/gui/gnome-cal.c | 31 |
1 files changed, 2 insertions, 29 deletions
diff --git a/calendar/gui/gnome-cal.c b/calendar/gui/gnome-cal.c index ed9ad98484..1e98737098 100644 --- a/calendar/gui/gnome-cal.c +++ b/calendar/gui/gnome-cal.c @@ -1012,34 +1012,6 @@ gnome_calendar_open (GnomeCalendar *gcal, return 1; } -void -gnome_calendar_update_object (GnomeCalendar *gcal, iCalObject *obj) -{ - char *obj_string; - - g_return_if_fail (gcal != NULL); - g_return_if_fail (GNOME_IS_CALENDAR (gcal)); - g_return_if_fail (obj != NULL); - g_return_if_fail (obj->uid != NULL); - - obj_string = ical_object_to_string (obj); - cal_client_update_object (gcal->client, obj->uid, obj_string); - g_free (obj_string); -} - -void -gnome_calendar_remove_object (GnomeCalendar *gcal, iCalObject *obj) -{ - gboolean r; - - g_return_if_fail (gcal != NULL); - g_return_if_fail (GNOME_IS_CALENDAR (gcal)); - g_return_if_fail (obj != NULL); - g_return_if_fail (obj->uid != NULL); - - r = cal_client_remove_object (gcal->client, obj->uid); -} - static void stop_beeping (GtkObject* object, gpointer data) { @@ -1328,7 +1300,8 @@ save_ical_object_cb (EventEditor *ee, iCalObject *ico, gpointer data) GnomeCalendar *gcal; gcal = GNOME_CALENDAR (data); - gnome_calendar_update_object (gcal, ico); + if (!cal_client_update_object (gcal->client, ico)) + g_message ("save_ical_object_cb(): Could not update the object!"); } void |