aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/gnome-cal.c
diff options
context:
space:
mode:
authorFederico Mena Quintero <federico@nuclecu.unam.mx>1998-04-14 12:06:58 +0800
committerArturo Espinosa <unammx@src.gnome.org>1998-04-14 12:06:58 +0800
commit49a388705e5085a963c3c1b5cdcd324af5d8b1b5 (patch)
treef2815ebbad01062c49dc016aa26352898ecd6bc1 /calendar/gui/gnome-cal.c
parent23ef00df35512cfe6285ba45c0b20f635faee111 (diff)
downloadgsoc2013-evolution-49a388705e5085a963c3c1b5cdcd324af5d8b1b5.tar
gsoc2013-evolution-49a388705e5085a963c3c1b5cdcd324af5d8b1b5.tar.gz
gsoc2013-evolution-49a388705e5085a963c3c1b5cdcd324af5d8b1b5.tar.bz2
gsoc2013-evolution-49a388705e5085a963c3c1b5cdcd324af5d8b1b5.tar.lz
gsoc2013-evolution-49a388705e5085a963c3c1b5cdcd324af5d8b1b5.tar.xz
gsoc2013-evolution-49a388705e5085a963c3c1b5cdcd324af5d8b1b5.tar.zst
gsoc2013-evolution-49a388705e5085a963c3c1b5cdcd324af5d8b1b5.zip
Now takes object and flags parameters. Likewise. Likewise.
1998-04-13 Federico Mena Quintero <federico@nuclecu.unam.mx> * gncal-week-view.c (gncal_week_view_update): Now takes object and flags parameters. * gncal-day-view.c (gncal_day_view_update): Likewise. * gncal-full-day.c (gncal_full_day_update): Likewise. (child_focus_in): New function. In conjunction with child_focus_out(), these only display the handles in the child when it is focused. The result is that the user can see more of the child's text when nothing is focused, and we can also display fatter and nicer drag handles. * gnome-cal.c (gnome_calendar_object_changed): Now takes an additional flags parameter (gnome_calendar_update_all): Made function static. Now takes changed object and flags parameters as well. (gnome_calendar_object_changed): Now takes additional flags parameter to indicate what changed in the specified object. * calobj.h (CalObjectChange): New enum with flags to describe what has been changed in an object. svn path=/trunk/; revision=132
Diffstat (limited to 'calendar/gui/gnome-cal.c')
-rw-r--r--calendar/gui/gnome-cal.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/calendar/gui/gnome-cal.c b/calendar/gui/gnome-cal.c
index 6a9b7b044f..0b2da0a0e2 100644
--- a/calendar/gui/gnome-cal.c
+++ b/calendar/gui/gnome-cal.c
@@ -185,18 +185,18 @@ gnome_calendar_new (char *title)
return retval;
}
-void
-gnome_calendar_update_all (GnomeCalendar *cal)
+static void
+gnome_calendar_update_all (GnomeCalendar *cal, iCalObject *object, int flags)
{
- gncal_full_day_update (GNCAL_FULL_DAY (cal->day_view));
- gncal_week_view_update (GNCAL_WEEK_VIEW (cal->week_view));
+ gncal_full_day_update (GNCAL_FULL_DAY (cal->day_view), object, flags);
+ gncal_week_view_update (GNCAL_WEEK_VIEW (cal->week_view), object, flags);
}
void
gnome_calendar_load (GnomeCalendar *gcal, char *file)
{
calendar_load (gcal->cal, file);
- gnome_calendar_update_all (gcal);
+ gnome_calendar_update_all (gcal, NULL, 0);
}
void
@@ -205,11 +205,11 @@ 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);
+ gnome_calendar_update_all (gcal, obj, CHANGE_NEW);
}
void
-gnome_calendar_object_changed (GnomeCalendar *gcal, iCalObject *obj)
+gnome_calendar_object_changed (GnomeCalendar *gcal, iCalObject *obj, int flags)
{
g_return_if_fail (gcal != NULL);
g_return_if_fail (GNOME_IS_CALENDAR (gcal));
@@ -222,5 +222,5 @@ gnome_calendar_object_changed (GnomeCalendar *gcal, iCalObject *obj)
gcal->cal->modified = TRUE;
- gnome_calendar_update_all (gcal);
+ gnome_calendar_update_all (gcal, obj, flags);
}