From eb7c5ae3c5fa9ab3bab2a60d7a0c8a5a4ed93cb7 Mon Sep 17 00:00:00 2001 From: Eskil Heyn Olsen Date: Fri, 31 Dec 1999 15:58:08 +0000 Subject: Committed fixes for the end-on-day recurrence bug where the last day was skipped. Also fixed problem with multiple setitimer calls that where especially pesky in the corba part, where corba calls would cause numerous alarm dialogs when the events alarm went off. svn path=/trunk/; revision=1525 --- calendar/gui/calendar.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'calendar/gui/calendar.c') diff --git a/calendar/gui/calendar.c b/calendar/gui/calendar.c index 0fbecaf6f6..db31ba016b 100644 --- a/calendar/gui/calendar.c +++ b/calendar/gui/calendar.c @@ -33,7 +33,7 @@ static void calendar_init_alarms (Calendar *cal); static void calendar_set_day (void); Calendar * -calendar_new (char *title) +calendar_new (char *title,CalendarNewOptions options) { Calendar *cal; @@ -46,7 +46,9 @@ calendar_new (char *title) cal->event_hash = g_hash_table_new (g_str_hash, g_str_equal); - calendar_init_alarms (cal); + if (options & CALENDAR_INIT_ALARMS) { + calendar_init_alarms (cal); + } return cal; } @@ -633,7 +635,7 @@ calendar_string_from_object (iCalObject *object) g_return_val_if_fail (object != NULL, NULL); - cal = calendar_new ("Temporal"); + cal = calendar_new ("Temporal",CALENDAR_INIT_NIL); calendar_add_object (cal, object); str = calendar_get_as_vcal_string (cal); calendar_remove_object (cal, object); -- cgit v1.2.3