aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/gnome-cal.c
diff options
context:
space:
mode:
authorMiguel de Icaza <miguel@nuclecu.unam.mx>1998-04-02 15:57:58 +0800
committerArturo Espinosa <unammx@src.gnome.org>1998-04-02 15:57:58 +0800
commitf865d886f5aae9279d44f726a0b8093316a40e09 (patch)
treef397fa0ffb407d2ae4c15c61335bac25cb68d2a0 /calendar/gui/gnome-cal.c
parent33b0ab0d0f19c405445315446fd584748538a1ed (diff)
downloadgsoc2013-evolution-f865d886f5aae9279d44f726a0b8093316a40e09.tar
gsoc2013-evolution-f865d886f5aae9279d44f726a0b8093316a40e09.tar.gz
gsoc2013-evolution-f865d886f5aae9279d44f726a0b8093316a40e09.tar.bz2
gsoc2013-evolution-f865d886f5aae9279d44f726a0b8093316a40e09.tar.lz
gsoc2013-evolution-f865d886f5aae9279d44f726a0b8093316a40e09.tar.xz
gsoc2013-evolution-f865d886f5aae9279d44f726a0b8093316a40e09.tar.zst
gsoc2013-evolution-f865d886f5aae9279d44f726a0b8093316a40e09.zip
New main program that uses our new datatypes and objects.
1998-04-02 Miguel de Icaza <miguel@nuclecu.unam.mx> * 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
Diffstat (limited to 'calendar/gui/gnome-cal.c')
-rw-r--r--calendar/gui/gnome-cal.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/calendar/gui/gnome-cal.c b/calendar/gui/gnome-cal.c
index 333931a5a2..0b22a1a684 100644
--- a/calendar/gui/gnome-cal.c
+++ b/calendar/gui/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);
}