aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--calendar/ChangeLog6
-rw-r--r--calendar/gui/gnome-cal.c6
2 files changed, 9 insertions, 3 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog
index 1f7f7a2948..85d4f6e9c9 100644
--- a/calendar/ChangeLog
+++ b/calendar/ChangeLog
@@ -1,5 +1,11 @@
2004-06-10 JP Rosevear <jpr@novell.com>
+ * gui/gnome-cal.c
+ (gnome_calendar_on_date_navigator_selection_changed): only do the
+ range selected hack in one case
+
+2004-06-10 JP Rosevear <jpr@novell.com>
+
* gui/gnome-cal.c (setup_widgets): set 6 weeks shown
(display_view): ditto
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);