From f865d886f5aae9279d44f726a0b8093316a40e09 Mon Sep 17 00:00:00 2001 From: Miguel de Icaza Date: Thu, 2 Apr 1998 07:57:58 +0000 Subject: New main program that uses our new datatypes and objects. 1998-04-02 Miguel de Icaza * main.c: New main program that uses our new datatypes and objects. * calendar.c (calendar_load_from_vobject, calendar_load): Implement loading of vCalendar objects and vCalendar files. * calobj.c (ical_object_create_from_vobject): Implement loading of vCalendar event and todo objects. * timeutil.c (isodate_from_time_t): New function. * gnome-cal.c, gnome-cal.h: Implement a toplevel widget, derived from GnomeApp. It holds all of the day views and arbitrates the display. svn path=/trunk/; revision=93 --- calendar/gnome-cal.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'calendar/gnome-cal.c') diff --git a/calendar/gnome-cal.c b/calendar/gnome-cal.c index 333931a5a2..0b22a1a684 100644 --- a/calendar/gnome-cal.c +++ b/calendar/gnome-cal.c @@ -39,10 +39,13 @@ setup_widgets (GnomeCalendar *gcal) { GtkWidget *notebook; GtkWidget *day_view, *week_view, *year_view, *task_view; - + time_t now; + + now = time (NULL); + notebook = gtk_notebook_new (); day_view = day_view_create (gcal); - week_view = week_view_create (gcal); + week_view = gncal_week_view_new (gcal->cal, now); year_view = year_view_create (gcal); task_view = tasks_create (gcal); @@ -86,7 +89,7 @@ gnome_calendar_new (char *title) } void -gnome_calendar_load (char *file) +gnome_calendar_load (GnomeCalendar *gcal, char *file) { - + calendar_load (gcal->cal, file); } -- cgit