diff options
Diffstat (limited to 'calendar/gui/calendar.c')
-rw-r--r-- | calendar/gui/calendar.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/calendar/gui/calendar.c b/calendar/gui/calendar.c index 492ff24135..c53d2f1566 100644 --- a/calendar/gui/calendar.c +++ b/calendar/gui/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); +} |