From 135b14779eed39d6f4373212ba6ebf0683e5a6dc Mon Sep 17 00:00:00 2001 From: Milan Crha Date: Tue, 28 Jul 2009 19:56:11 +0200 Subject: Bug #314599 - Recurrence Tab Should Not Default To Forever --- calendar/gui/calendar-config.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'calendar/gui/calendar-config.c') diff --git a/calendar/gui/calendar-config.c b/calendar/gui/calendar-config.c index f1730d5bc7..86c771ff3e 100644 --- a/calendar/gui/calendar-config.c +++ b/calendar/gui/calendar-config.c @@ -1721,3 +1721,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; +} -- cgit