diff options
author | Federico Mena Quintero <federico@nuclecu.unam.mx> | 1998-08-11 12:22:05 +0800 |
---|---|---|
committer | Arturo Espinosa <unammx@src.gnome.org> | 1998-08-11 12:22:05 +0800 |
commit | 1596825b7da24002e23d90a236d6def417d7dd58 (patch) | |
tree | 9f1ec2b869985e722c230ec2589440aedf44d2bd /calendar/gnome-cal.c | |
parent | f91ebfeae9cdbc0d4866e08fc538f7e466ab70f8 (diff) | |
download | gsoc2013-evolution-1596825b7da24002e23d90a236d6def417d7dd58.tar.gz gsoc2013-evolution-1596825b7da24002e23d90a236d6def417d7dd58.tar.zst gsoc2013-evolution-1596825b7da24002e23d90a236d6def417d7dd58.zip |
Start of the month view widget. This will use the generic month item and
1998-08-10 Federico Mena Quintero <federico@nuclecu.unam.mx>
* month-view.[ch]: Start of the month view widget. This will use
the generic month item and extend it to have the semantics desired
for the gnomecal month view.
* gnome-month-item.[ch]: New generic canvas item for the month
view and the "small calendars". This is intended to be a
high-level display engine for monthly calendars. This is a work
in progress.
* gnome-cal.h (GnomeCalendar): Added a month_view field.
* gnome-cal.c (setup_widgets): Create the month view and insert it
into the notebook.
* Makefile.am: Added month-view.[ch] and gnome-month-item.[ch] to
the sources.
svn path=/trunk/; revision=307
Diffstat (limited to 'calendar/gnome-cal.c')
-rw-r--r-- | calendar/gnome-cal.c | 23 |
1 files changed, 13 insertions, 10 deletions
diff --git a/calendar/gnome-cal.c b/calendar/gnome-cal.c index 9731bd855c..234f782fa3 100644 --- a/calendar/gnome-cal.c +++ b/calendar/gnome-cal.c @@ -15,6 +15,7 @@ #include "gncal-day-panel.h" #include "gncal-week-view.h" #include "gncal-year-view.h" +#include "month-view.h" #include "timeutil.h" #include "views.h" #include "main.h" @@ -48,16 +49,18 @@ setup_widgets (GnomeCalendar *gcal) now = time (NULL); - gcal->notebook = gtk_notebook_new (); - gcal->day_view = gncal_day_panel_new (gcal, now); - gcal->week_view = gncal_week_view_new (gcal, now); - gcal->year_view = gncal_year_view_new (gcal, now); - gcal->task_view = tasks_create (gcal); - - gtk_notebook_append_page (GTK_NOTEBOOK (gcal->notebook), gcal->day_view, gtk_label_new (_("Day View"))); - gtk_notebook_append_page (GTK_NOTEBOOK (gcal->notebook), gcal->week_view, gtk_label_new (_("Week View"))); - gtk_notebook_append_page (GTK_NOTEBOOK (gcal->notebook), gcal->year_view, gtk_label_new (_("Year View"))); -/* gtk_notebook_append_page (GTK_NOTEBOOK (gcal->notebook), gcal->task_view, gtk_label_new (_("Todo"))); */ + gcal->notebook = gtk_notebook_new (); + gcal->day_view = gncal_day_panel_new (gcal, now); + gcal->week_view = gncal_week_view_new (gcal, now); + gcal->month_view = month_view_new (gcal); + gcal->year_view = gncal_year_view_new (gcal, now); + gcal->task_view = tasks_create (gcal); + + gtk_notebook_append_page (GTK_NOTEBOOK (gcal->notebook), gcal->day_view, gtk_label_new (_("Day View"))); + gtk_notebook_append_page (GTK_NOTEBOOK (gcal->notebook), gcal->week_view, gtk_label_new (_("Week View"))); + gtk_notebook_append_page (GTK_NOTEBOOK (gcal->notebook), gcal->month_view, gtk_label_new (_("Month View"))); + gtk_notebook_append_page (GTK_NOTEBOOK (gcal->notebook), gcal->year_view, gtk_label_new (_("Year View"))); +/* gtk_notebook_append_page (GTK_NOTEBOOK (gcal->notebook), gcal->task_view, gtk_label_new (_("Todo"))); */ gtk_widget_show_all (gcal->notebook); |