diff options
author | Federico Mena Quintero <federico@nuclecu.unam.mx> | 1998-04-09 15:36:54 +0800 |
---|---|---|
committer | Arturo Espinosa <unammx@src.gnome.org> | 1998-04-09 15:36:54 +0800 |
commit | a4b297a8d4fbcbfc6afe5df3b8844d3e3fbce8c3 (patch) | |
tree | f67e1349246b009e89f8a2e819b99908394b0268 /calendar/gnome-cal.c | |
parent | 8e5a66e2c304f3cae73838495868941b6f66c7dc (diff) | |
download | gsoc2013-evolution-a4b297a8d4fbcbfc6afe5df3b8844d3e3fbce8c3.tar gsoc2013-evolution-a4b297a8d4fbcbfc6afe5df3b8844d3e3fbce8c3.tar.gz gsoc2013-evolution-a4b297a8d4fbcbfc6afe5df3b8844d3e3fbce8c3.tar.bz2 gsoc2013-evolution-a4b297a8d4fbcbfc6afe5df3b8844d3e3fbce8c3.tar.lz gsoc2013-evolution-a4b297a8d4fbcbfc6afe5df3b8844d3e3fbce8c3.tar.xz gsoc2013-evolution-a4b297a8d4fbcbfc6afe5df3b8844d3e3fbce8c3.tar.zst gsoc2013-evolution-a4b297a8d4fbcbfc6afe5df3b8844d3e3fbce8c3.zip |
Show instead of just map the child widget (otherwise the text widget gets
1998-04-09 Federico Mena Quintero <federico@nuclecu.unam.mx>
* 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
Diffstat (limited to 'calendar/gnome-cal.c')
-rw-r--r-- | calendar/gnome-cal.c | 19 |
1 files changed, 18 insertions, 1 deletions
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); +} |