From 96439bc6fffe21b8359bd825aa89fc586d36380a Mon Sep 17 00:00:00 2001 From: Federico Mena Quintero Date: Fri, 2 Oct 1998 23:59:35 +0000 Subject: Changed name from time_start_of_day() to be consistent with the other 1998-10-02 Federico Mena Quintero * timeutil.c (time_day_begin): Changed name from time_start_of_day() to be consistent with the other begin/end functions. (time_day_end): Likewise. * calobj.c (ical_object_get_first_weekday): New public function to get the first toggled day in a weekday mask. Since we do not support multiple weekdays in a monthly-by-pos rule, we just fetch the first toggled one. (ical_object_generate_events): Added a missing break statement. * timeutil.c (time_month_end): Made it consistent with the rest of the time begin/end functions -- now it returns the first second of the *next* month. (time_week_end): Actually implemented this function. It will be used when the week view is rewritten. * calobj.c (time_in_range): Fix off-by-one in the comparison of the time against the end time. * gncal-full-day.c (expand_space): Fixed bug where the columns not were being expanded due to a missing "slot + j". svn path=/trunk/; revision=425 --- calendar/gui/gncal-day-panel.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'calendar/gui/gncal-day-panel.c') diff --git a/calendar/gui/gncal-day-panel.c b/calendar/gui/gncal-day-panel.c index 11a2d21a7d..c4ea354e25 100644 --- a/calendar/gui/gncal-day-panel.c +++ b/calendar/gui/gncal-day-panel.c @@ -128,7 +128,7 @@ gncal_day_panel_new (GnomeCalendar *calendar, time_t start_of_day) 0, 0); gtk_widget_show (w); - w = gncal_full_day_new (calendar, time_start_of_day (start_of_day), time_end_of_day (start_of_day)); + w = gncal_full_day_new (calendar, time_day_begin (start_of_day), time_day_end (start_of_day)); dpanel->fullday = GNCAL_FULL_DAY (w); gtk_signal_connect (GTK_OBJECT (dpanel->fullday), "range_activated", (GtkSignalFunc) day_view_range_activated, @@ -221,7 +221,7 @@ gncal_day_panel_set (GncalDayPanel *dpanel, time_t start_of_day) g_return_if_fail (dpanel != NULL); g_return_if_fail (GNCAL_IS_DAY_PANEL (dpanel)); - dpanel->start_of_day = time_start_of_day (start_of_day); + dpanel->start_of_day = time_day_begin (start_of_day); if (dpanel->fullday->lower == dpanel->start_of_day) return; @@ -229,7 +229,7 @@ gncal_day_panel_set (GncalDayPanel *dpanel, time_t start_of_day) strftime (buf, sizeof (buf), "%a %b %d %Y", &tm); gtk_label_set (GTK_LABEL (dpanel->date_label), buf); - gncal_full_day_set_bounds (dpanel->fullday, dpanel->start_of_day, time_end_of_day (dpanel->start_of_day)); + gncal_full_day_set_bounds (dpanel->fullday, dpanel->start_of_day, time_day_end (dpanel->start_of_day)); gtk_calendar_select_month (dpanel->gtk_calendar, tm.tm_mon, tm.tm_year + 1900); -- cgit