aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/calendar-config.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/calendar-config.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/calendar-config.c')
-rw-r--r--calendar/gui/calendar-config.c29
1 files changed, 29 insertions, 0 deletions
diff --git a/calendar/gui/calendar-config.c b/calendar/gui/calendar-config.c
index 65864ea272..8af8230efd 100644
--- a/calendar/gui/calendar-config.c
+++ b/calendar/gui/calendar-config.c
@@ -587,6 +587,35 @@ calendar_config_add_notification_time_divisions (GConfClientNotifyFunc func, gpo
return id;
}
+/* Scroll in a month view by a week, not by a month */
+gboolean
+calendar_config_get_month_scroll_by_week (void)
+{
+ calendar_config_init ();
+
+ return gconf_client_get_bool (config, CALENDAR_CONFIG_MONTH_SCROLL_BY_WEEK, NULL);
+}
+
+void
+calendar_config_set_month_scroll_by_week (gboolean value)
+{
+ calendar_config_init ();
+
+ gconf_client_set_bool (config, CALENDAR_CONFIG_MONTH_SCROLL_BY_WEEK, value, NULL);
+}
+
+guint
+calendar_config_add_notification_month_scroll_by_week (GConfClientNotifyFunc func, gpointer data)
+{
+ guint id;
+
+ calendar_config_init ();
+
+ id = gconf_client_notify_add (config, CALENDAR_CONFIG_MONTH_SCROLL_BY_WEEK, func, data, NULL, NULL);
+
+ return id;
+}
+
/* Whether we show the Marcus Bains Line (current time), and in what colors. */
void
calendar_config_get_marcus_bains (gboolean *show_line, const char **dayview_color, const char **timebar_color)