diff options
author | Eskil Heyn Olsen <eskil@src.gnome.org> | 1999-12-31 23:58:08 +0800 |
---|---|---|
committer | Eskil Heyn Olsen <eskil@src.gnome.org> | 1999-12-31 23:58:08 +0800 |
commit | eb7c5ae3c5fa9ab3bab2a60d7a0c8a5a4ed93cb7 (patch) | |
tree | bc250c8cc8679635d972d3f847291882f02bc062 /calendar/calendar.c | |
parent | 0948bfda86d63a09c5b5c9661911e963cc750357 (diff) | |
download | gsoc2013-evolution-eb7c5ae3c5fa9ab3bab2a60d7a0c8a5a4ed93cb7.tar.gz gsoc2013-evolution-eb7c5ae3c5fa9ab3bab2a60d7a0c8a5a4ed93cb7.tar.zst gsoc2013-evolution-eb7c5ae3c5fa9ab3bab2a60d7a0c8a5a4ed93cb7.zip |
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
Diffstat (limited to 'calendar/calendar.c')
-rw-r--r-- | calendar/calendar.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/calendar/calendar.c b/calendar/calendar.c index 0fbecaf6f6..db31ba016b 100644 --- a/calendar/calendar.c +++ b/calendar/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); |