From a4b297a8d4fbcbfc6afe5df3b8844d3e3fbce8c3 Mon Sep 17 00:00:00 2001 From: Federico Mena Quintero Date: Thu, 9 Apr 1998 07:36:54 +0000 Subject: Show instead of just map the child widget (otherwise the text widget gets 1998-04-09 Federico Mena Quintero * gncal-full-day.c (child_map): Show instead of just map the child widget (otherwise the text widget gets confused and will not focus). * calobj.c (ical_object_to_vobject): Quote chars as 'x', not "x". * calobj.h: Added prototype for ical_object_to_vobject(). * gnome-cal.c (gnome_calendar_object_changed): New function. This should be called when a calendar object is changed. * gncal-full-day.c (update_from_drag_info): Call gnome_calendar_object_changed() instead of updating manually. * calendar.c (calendar_add_object): (calendar_remove_object): Set the modified flag to true. * gncal-full-day.c (gncal_full_day_draw): Finished implementing this function. svn path=/trunk/; revision=120 --- calendar/gnome-cal.c | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) (limited to 'calendar/gnome-cal.c') diff --git a/calendar/gnome-cal.c b/calendar/gnome-cal.c index b202422e2d..873ee3f908 100644 --- a/calendar/gnome-cal.c +++ b/calendar/gnome-cal.c @@ -189,10 +189,27 @@ gnome_calendar_load (GnomeCalendar *gcal, char *file) } void -gnome_calendar_add_object (GnomeCalendar *gcal, iCalObject *obj) +gnome_calendar_add_object (GnomeCalendar *gcal, iCalObject *obj) { printf ("Adding object at: "); print_time_t (obj->dtstart); calendar_add_object (gcal->cal, obj); gnome_calendar_update_all (gcal); } + +void +gnome_calendar_object_changed (GnomeCalendar *gcal, iCalObject *obj) +{ + g_return_if_fail (gcal != NULL); + g_return_if_fail (GNOME_IS_CALENDAR (gcal)); + g_return_if_fail (obj != NULL); + + /* FIXME: for now we only update the views. Most likely we + * need to do something else like set the last_mod field on + * the iCalObject and such - Federico + */ + + gcal->cal->modified = TRUE; + + gnome_calendar_update_all (gcal); +} -- cgit