aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/dialogs
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2009-08-03 19:32:55 +0800
committerMilan Crha <mcrha@redhat.com>2009-08-03 19:32:55 +0800
commit80374b7b6268707696124329c5e64e260e41c090 (patch)
treedfe05a405c87812f91413f9cea03b6b29c6e4ce4 /calendar/gui/dialogs
parent41fe23adc1d8a336c1c1c0792ea607b0db3787c1 (diff)
downloadgsoc2013-evolution-80374b7b6268707696124329c5e64e260e41c090.tar
gsoc2013-evolution-80374b7b6268707696124329c5e64e260e41c090.tar.gz
gsoc2013-evolution-80374b7b6268707696124329c5e64e260e41c090.tar.bz2
gsoc2013-evolution-80374b7b6268707696124329c5e64e260e41c090.tar.lz
gsoc2013-evolution-80374b7b6268707696124329c5e64e260e41c090.tar.xz
gsoc2013-evolution-80374b7b6268707696124329c5e64e260e41c090.tar.zst
gsoc2013-evolution-80374b7b6268707696124329c5e64e260e41c090.zip
Bug #314599 - Recurrence Tab Should Not Default To Forever
Added a GConf schema key definition. Special value, -1, means forever.
Diffstat (limited to 'calendar/gui/dialogs')
-rw-r--r--calendar/gui/dialogs/recurrence-page.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/calendar/gui/dialogs/recurrence-page.c b/calendar/gui/dialogs/recurrence-page.c
index bbc7caa473..385b4eeea0 100644
--- a/calendar/gui/dialogs/recurrence-page.c
+++ b/calendar/gui/dialogs/recurrence-page.c
@@ -443,9 +443,11 @@ clear_widgets (RecurrencePage *rpage)
g_signal_handlers_block_matched (priv->ending_combo, G_SIGNAL_MATCH_DATA, 0, 0, NULL, NULL, rpage);
e_dialog_combo_box_set (priv->ending_combo,
- ENDING_FOR,
+ priv->ending_count == -1 ? ENDING_FOREVER : ENDING_FOR,
ending_types_map);
g_signal_handlers_unblock_matched (priv->ending_combo, G_SIGNAL_MATCH_DATA, 0, 0, NULL, NULL, rpage);
+ if (priv->ending_count == -1)
+ priv->ending_count = 2;
make_ending_special (rpage);
/* Exceptions list */
e_date_time_list_clear (priv->exception_list_store);