From adac6994268794b434973701ed5f20386eed02c9 Mon Sep 17 00:00:00 2001 From: Miguel de Icaza Date: Thu, 17 Dec 1998 04:40:38 +0000 Subject: Rewrote the old and broken alarm system. It never actually worked 1998-12-16 Miguel de Icaza Rewrote the old and broken alarm system. It never actually worked properly. Now it works properly, and I figured a nice way to get the Audio alarm do something nicer (it is now like an alarm clock :-). * gnome-cal.c (calendar_notify): Now we take a CalendarAlarm to actually distinguish which alarm was triggered. * alarm.c (alarm_ready): The code was only activating the first alarm. Reschedule the timer upon delivery of an alarm. svn path=/trunk/; revision=535 --- calendar/gui/alarm-notify/alarm.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'calendar/gui/alarm-notify/alarm.h') diff --git a/calendar/gui/alarm-notify/alarm.h b/calendar/gui/alarm-notify/alarm.h index d37ff0c1bf..3c2ab18ff1 100644 --- a/calendar/gui/alarm-notify/alarm.h +++ b/calendar/gui/alarm-notify/alarm.h @@ -3,10 +3,10 @@ #include -typedef void (*AlarmFunction)(time_t time, void *closuse); +typedef void (*AlarmFunction)(time_t time, CalendarAlarm *which, void *closuse); void alarm_init (void); -void alarm_add (time_t alarm_time, AlarmFunction fn, void *closure); +void alarm_add (CalendarAlarm *alarm, AlarmFunction fn, void *closure); int alarm_kill (void *closure); #endif -- cgit v1.2.3