diff options
author | Miguel de Icaza <miguel@nuclecu.unam.mx> | 1998-04-03 04:35:12 +0800 |
---|---|---|
committer | Arturo Espinosa <unammx@src.gnome.org> | 1998-04-03 04:35:12 +0800 |
commit | f6963100c2509175cbd22b1556273ddbc0dd4e7d (patch) | |
tree | 5cfbf3602fda3fe5ecaaa716a2094c5aa2f3c0a7 /calendar/gui/gnome-cal.c | |
parent | d4f096e0ca0ec461d5ab7a3369aaa95480561d92 (diff) | |
download | gsoc2013-evolution-f6963100c2509175cbd22b1556273ddbc0dd4e7d.tar.gz gsoc2013-evolution-f6963100c2509175cbd22b1556273ddbc0dd4e7d.tar.zst gsoc2013-evolution-f6963100c2509175cbd22b1556273ddbc0dd4e7d.zip |
Day events are now cached inside the widget. They get initialized at this
1998-04-02 Miguel de Icaza <miguel@nuclecu.unam.mx>
* gncal-day-view.c (gncal_day_view_update): Day events are now
cached inside the widget. They get initialized at this time.
* view-utils.c (view_utils_draw_events): Use the list of events.
svn path=/trunk/; revision=95
Diffstat (limited to 'calendar/gui/gnome-cal.c')
-rw-r--r-- | calendar/gui/gnome-cal.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/calendar/gui/gnome-cal.c b/calendar/gui/gnome-cal.c index 0b22a1a684..7e3755b0dc 100644 --- a/calendar/gui/gnome-cal.c +++ b/calendar/gui/gnome-cal.c @@ -8,6 +8,7 @@ #include <gnome.h> #include "calendar.h" #include "gnome-cal.h" +#include "gncal-week-view.h" #include "views.h" static void gnome_calendar_init (GnomeCalendar *gcal); @@ -38,19 +39,19 @@ static void setup_widgets (GnomeCalendar *gcal) { GtkWidget *notebook; - GtkWidget *day_view, *week_view, *year_view, *task_view; + GtkWidget *day_view, *year_view, *task_view; time_t now; now = time (NULL); notebook = gtk_notebook_new (); day_view = day_view_create (gcal); - week_view = gncal_week_view_new (gcal->cal, now); + gcal->week_view = gncal_week_view_new (gcal, now); year_view = year_view_create (gcal); task_view = tasks_create (gcal); gtk_notebook_append_page (GTK_NOTEBOOK (notebook), day_view, gtk_label_new (_("Day View"))); - gtk_notebook_append_page (GTK_NOTEBOOK (notebook), week_view, gtk_label_new (_("Week View"))); + gtk_notebook_append_page (GTK_NOTEBOOK (notebook), gcal->week_view, gtk_label_new (_("Week View"))); gtk_notebook_append_page (GTK_NOTEBOOK (notebook), year_view, gtk_label_new (_("Year View"))); gtk_notebook_append_page (GTK_NOTEBOOK (notebook), task_view, gtk_label_new (_("Tasks"))); @@ -92,4 +93,5 @@ void gnome_calendar_load (GnomeCalendar *gcal, char *file) { calendar_load (gcal->cal, file); + gncal_week_view_update (GNCAL_WEEK_VIEW (gcal->week_view)); } |