diff options
author | Milan Crha <mcrha@redhat.com> | 2009-07-29 01:56:11 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2009-08-11 04:26:11 +0800 |
commit | 78c34e905d5689f72276c323cc06c12fc65d9cc1 (patch) | |
tree | e87b88c422a88d6b7c895632e7da59d829e53003 /calendar/gui/calendar-config.c | |
parent | 3d62dcf4cb08e8acb98693561037d35fd8741c73 (diff) | |
download | gsoc2013-evolution-78c34e905d5689f72276c323cc06c12fc65d9cc1.tar gsoc2013-evolution-78c34e905d5689f72276c323cc06c12fc65d9cc1.tar.gz gsoc2013-evolution-78c34e905d5689f72276c323cc06c12fc65d9cc1.tar.bz2 gsoc2013-evolution-78c34e905d5689f72276c323cc06c12fc65d9cc1.tar.lz gsoc2013-evolution-78c34e905d5689f72276c323cc06c12fc65d9cc1.tar.xz gsoc2013-evolution-78c34e905d5689f72276c323cc06c12fc65d9cc1.tar.zst gsoc2013-evolution-78c34e905d5689f72276c323cc06c12fc65d9cc1.zip |
Bug #314599 - Recurrence Tab Should Not Default To Forever
Diffstat (limited to 'calendar/gui/calendar-config.c')
-rw-r--r-- | calendar/gui/calendar-config.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/calendar/gui/calendar-config.c b/calendar/gui/calendar-config.c index 5ebd7e93e0..6b458adf58 100644 --- a/calendar/gui/calendar-config.c +++ b/calendar/gui/calendar-config.c @@ -1002,3 +1002,18 @@ calendar_config_add_notification_day_second_zone (GConfClientNotifyFunc func, gp return id; } + +/* default count for recurring events */ +gint +calendar_config_get_default_count (void) +{ + gint res; + + calendar_config_init (); + + res = gconf_client_get_int (config, CALENDAR_CONFIG_DEF_RECUR_COUNT, NULL); + if (res <= 0) + res = 2; + + return res; +} |