From b1c7fda1bcdb890774764aa8dbf7be1581eadc76 Mon Sep 17 00:00:00 2001 From: JP Rosevear Date: Thu, 10 Jun 2004 17:06:32 +0000 Subject: only do the range selected hack in one case 2004-06-10 JP Rosevear * gui/gnome-cal.c (gnome_calendar_on_date_navigator_selection_changed): only do the range selected hack in one case svn path=/trunk/; revision=26290 --- calendar/gui/gnome-cal.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'calendar/gui') diff --git a/calendar/gui/gnome-cal.c b/calendar/gui/gnome-cal.c index 45921770e0..b58e6d2133 100644 --- a/calendar/gui/gnome-cal.c +++ b/calendar/gui/gnome-cal.c @@ -2692,6 +2692,9 @@ gnome_calendar_on_date_navigator_selection_changed (ECalendarItem *calitem, Gnom /* Switch views as appropriate, and change the number of days or weeks shown. */ if (new_days_shown > 9) { + /* FIXME Gross hack so that the view times are updated properly */ + priv->range_selected = TRUE; + e_week_view_set_weeks_shown (E_WEEK_VIEW (priv->month_view), (new_days_shown + 6) / 7); view_type = GNOME_CAL_MONTH_VIEW; @@ -2707,9 +2710,6 @@ gnome_calendar_on_date_navigator_selection_changed (ECalendarItem *calitem, Gnom view_type = GNOME_CAL_DAY_VIEW; } - /* FIXME Gross hack so that the view times are updated properly */ - priv->range_selected = TRUE; - /* Make the views display things properly */ update_view_times (gcal, new_time); -- cgit v1.2.3