aboutsummaryrefslogtreecommitdiffstats
path: root/calendar
diff options
context:
space:
mode:
authorJP Rosevear <jpr@novell.com>2004-06-11 01:06:32 +0800
committerJP Rosevear <jpr@src.gnome.org>2004-06-11 01:06:32 +0800
commitb1c7fda1bcdb890774764aa8dbf7be1581eadc76 (patch)
tree1381ce23453c57caab6f01ef2ddb8a1008d3fe26 /calendar
parent8db565271c4bca4f480eb79193c0a5ceb322b778 (diff)
downloadgsoc2013-evolution-b1c7fda1bcdb890774764aa8dbf7be1581eadc76.tar
gsoc2013-evolution-b1c7fda1bcdb890774764aa8dbf7be1581eadc76.tar.gz
gsoc2013-evolution-b1c7fda1bcdb890774764aa8dbf7be1581eadc76.tar.bz2
gsoc2013-evolution-b1c7fda1bcdb890774764aa8dbf7be1581eadc76.tar.lz
gsoc2013-evolution-b1c7fda1bcdb890774764aa8dbf7be1581eadc76.tar.xz
gsoc2013-evolution-b1c7fda1bcdb890774764aa8dbf7be1581eadc76.tar.zst
gsoc2013-evolution-b1c7fda1bcdb890774764aa8dbf7be1581eadc76.zip
only do the range selected hack in one case
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 svn path=/trunk/; revision=26290
Diffstat (limited to 'calendar')
-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);