aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/gnome-cal.c
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2011-05-13 22:55:33 +0800
committerMilan Crha <mcrha@redhat.com>2011-05-13 22:55:33 +0800
commitbd86dd54026ddae9d921adefb7055d8271afa89e (patch)
tree343250f20d439b2f72fa9752ff0c2acd0d0d6383 /calendar/gui/gnome-cal.c
parent998b265b135da1b373d6e20e5c9a3b405ca26163 (diff)
downloadgsoc2013-evolution-bd86dd54026ddae9d921adefb7055d8271afa89e.tar.gz
gsoc2013-evolution-bd86dd54026ddae9d921adefb7055d8271afa89e.tar.zst
gsoc2013-evolution-bd86dd54026ddae9d921adefb7055d8271afa89e.zip
Bug #243938 - Clicking on week numbers changes work week to week view
Diffstat (limited to 'calendar/gui/gnome-cal.c')
-rw-r--r--calendar/gui/gnome-cal.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/calendar/gui/gnome-cal.c b/calendar/gui/gnome-cal.c
index eb7ed6e081..3a4adad829 100644
--- a/calendar/gui/gnome-cal.c
+++ b/calendar/gui/gnome-cal.c
@@ -1843,6 +1843,11 @@ gnome_calendar_display_view (GnomeCalendar *gcal,
gcal->priv->date_navigator->calitem,
"preserve_day_when_moving", preserve_day, NULL);
+ /* keep week days selected as before for a work week view */
+ g_object_set (G_OBJECT (gcal->priv->date_navigator->calitem),
+ "keep_wdays_on_weeknum_click", view_type == GNOME_CAL_WORK_WEEK_VIEW,
+ NULL);
+
if (!gcal->priv->base_view_time)
start_time = time (NULL);
else