aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/gnome-cal.c
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2009-05-01 02:51:39 +0800
committerMilan Crha <mcrha@redhat.com>2009-05-01 02:51:39 +0800
commit7961048944d446f523a9ed12c811d7c2e8a47e97 (patch)
treea63b03bbde46b46163e794ded10f2e22276a3295 /calendar/gui/gnome-cal.c
parent8f2b4f9c6554698af19a39223acc33f965e2dfca (diff)
downloadgsoc2013-evolution-7961048944d446f523a9ed12c811d7c2e8a47e97.tar
gsoc2013-evolution-7961048944d446f523a9ed12c811d7c2e8a47e97.tar.gz
gsoc2013-evolution-7961048944d446f523a9ed12c811d7c2e8a47e97.tar.bz2
gsoc2013-evolution-7961048944d446f523a9ed12c811d7c2e8a47e97.tar.lz
gsoc2013-evolution-7961048944d446f523a9ed12c811d7c2e8a47e97.tar.xz
gsoc2013-evolution-7961048944d446f523a9ed12c811d7c2e8a47e97.tar.zst
gsoc2013-evolution-7961048944d446f523a9ed12c811d7c2e8a47e97.zip
Bug #273818 - Allow scrolling Month View by a week only
Edit->Preferences->Calendar and Tasks, tab Display, option Scroll Month View by a week.
Diffstat (limited to 'calendar/gui/gnome-cal.c')
-rw-r--r--calendar/gui/gnome-cal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/calendar/gui/gnome-cal.c b/calendar/gui/gnome-cal.c
index c2e4511ce6..87c61bb418 100644
--- a/calendar/gui/gnome-cal.c
+++ b/calendar/gui/gnome-cal.c
@@ -710,7 +710,7 @@ get_times_for_views (GnomeCalendar *gcal, GnomeCalendarViewType view_type, time_
/* FIXME We should be using the same day of the week enum every where */
display_start = (E_WEEK_VIEW (priv->views[view_type])->display_start_day + 1) % 7;
- if (!priv->range_selected)
+ if (!priv->range_selected && (!E_WEEK_VIEW (priv->views[view_type])->multi_week_view || !E_WEEK_VIEW (priv->views[view_type])->month_scroll_by_week))
*start_time = time_month_begin_with_zone (*start_time, priv->zone);
*start_time = time_week_begin_with_zone (*start_time, display_start, priv->zone);
*end_time = time_add_week_with_zone (*start_time, shown, priv->zone);