From 2ff4c25c6c79ea6bcb58a155d1e60e6a0eec9e6f Mon Sep 17 00:00:00 2001 From: Arturo Espinosa Date: Thu, 2 Apr 1998 21:00:59 +0000 Subject: Various time fixes; lib fixes; cache fixes -mig svn path=/trunk/; revision=96 --- calendar/gncal-day-view.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'calendar/gncal-day-view.c') diff --git a/calendar/gncal-day-view.c b/calendar/gncal-day-view.c index eef854322d..209b6be40a 100644 --- a/calendar/gncal-day-view.c +++ b/calendar/gncal-day-view.c @@ -113,6 +113,7 @@ gncal_day_view_new (GnomeCalendar *calendar, time_t lower, time_t upper) dview->lower = lower; dview->upper = upper; dview->events = 0; + gncal_day_view_update (dview); return GTK_WIDGET (dview); @@ -286,6 +287,9 @@ gncal_day_view_update (GncalDayView *dview) g_return_if_fail (dview != NULL); g_return_if_fail (GNCAL_IS_DAY_VIEW (dview)); + if (!dview->calendar->cal) + return; + if (dview->day_str) g_free (dview->day_str); -- cgit