aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/gnome-cal.c
diff options
context:
space:
mode:
authorSeth Alves <alves@src.gnome.org>2000-04-19 23:35:40 +0800
committerSeth Alves <alves@src.gnome.org>2000-04-19 23:35:40 +0800
commitb4bec5ff8f5614b08e92937d05673cd6f162fb0f (patch)
tree94060dc642f75b86652af6b5c6d410c95cb1d336 /calendar/gui/gnome-cal.c
parent81dbde9f097ae0b2d976d095903004872caf67a9 (diff)
downloadgsoc2013-evolution-b4bec5ff8f5614b08e92937d05673cd6f162fb0f.tar.gz
gsoc2013-evolution-b4bec5ff8f5614b08e92937d05673cd6f162fb0f.tar.zst
gsoc2013-evolution-b4bec5ff8f5614b08e92937d05673cd6f162fb0f.zip
fixed to use cal_client_update_object -- editing and dragging events works
* gui/gnome-cal.c (gnome_calendar_object_changed): fixed to use cal_client_update_object -- editing and dragging events works again svn path=/trunk/; revision=2504
Diffstat (limited to 'calendar/gui/gnome-cal.c')
-rw-r--r--calendar/gui/gnome-cal.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/calendar/gui/gnome-cal.c b/calendar/gui/gnome-cal.c
index 5b449c79d3..30123d053e 100644
--- a/calendar/gui/gnome-cal.c
+++ b/calendar/gui/gnome-cal.c
@@ -322,7 +322,6 @@ gnome_calendar_add_object (GnomeCalendar *gcal, iCalObject *obj)
g_return_if_fail (GNOME_IS_CALENDAR (gcal));
g_return_if_fail (obj != NULL);
- /*calendar_add_object (gcal->cal, obj); DELETE */
obj_string = ical_object_to_string (obj);
cal_client_update_object (gcal->client, obj->uid, obj_string);
g_free (obj_string);
@@ -346,15 +345,15 @@ gnome_calendar_remove_object (GnomeCalendar *gcal, iCalObject *obj)
void
gnome_calendar_object_changed (GnomeCalendar *gcal, iCalObject *obj, int flags)
{
+ char *obj_string;
g_return_if_fail (gcal != NULL);
g_return_if_fail (GNOME_IS_CALENDAR (gcal));
g_return_if_fail (obj != NULL);
- /* FIXME -- i don't know what to do here */
- /* gcal->cal->modified = TRUE; */
-
- gnome_calendar_update_all (gcal, obj, flags);
- /* calendar_object_changed (gcal->cal, obj, flags); */
+ obj_string = ical_object_to_string (obj);
+ cal_client_update_object (gcal->client, obj->uid, obj_string);
+ g_free (obj_string);
+ gnome_calendar_update_all (gcal, obj, CHANGE_NEW);
}
static int