From 282114a676e69a0b4c0656b3a6266d27165b2039 Mon Sep 17 00:00:00 2001 From: Arturo Espinosa Date: Wed, 29 Apr 1998 02:38:48 +0000 Subject: Lots of fixes: Lots of fixes: 1. Alarms are rescheduled when an event has been changed. 2. Avoid emitting spurious event changes. 3. Applied black magic to get the mail-notification working. Miguel. svn path=/trunk/; revision=199 --- calendar/calendar.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'calendar/calendar.c') diff --git a/calendar/calendar.c b/calendar/calendar.c index 492ff24135..c53d2f1566 100644 --- a/calendar/calendar.c +++ b/calendar/calendar.c @@ -382,3 +382,15 @@ calendar_get_events_in_range (Calendar *cal, time_t start, time_t end) calendar_iterate (cal, start, end, assemble_event_list, &l); return l; } + +void +calendar_object_changed (Calendar *cal, iCalObject *obj, int flags) +{ + if (!(flags & CHANGE_DATES)) + return; + + /* Remove any alarms on the alarm list for this object */ + while (alarm_kill (obj)) + ; + ical_object_try_alarms (obj); +} -- cgit