aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/calendar.c
diff options
context:
space:
mode:
authorMiguel de Icaza <miguel@nuclecu.unam.mx>1998-12-17 12:40:38 +0800
committerArturo Espinosa <unammx@src.gnome.org>1998-12-17 12:40:38 +0800
commitadac6994268794b434973701ed5f20386eed02c9 (patch)
treec611807515f7815b4d5ac8a7be5069b2bf012461 /calendar/calendar.c
parent52f6c4b4fe2c9ed4bed484b9e9d20a378275de61 (diff)
downloadgsoc2013-evolution-adac6994268794b434973701ed5f20386eed02c9.tar
gsoc2013-evolution-adac6994268794b434973701ed5f20386eed02c9.tar.gz
gsoc2013-evolution-adac6994268794b434973701ed5f20386eed02c9.tar.bz2
gsoc2013-evolution-adac6994268794b434973701ed5f20386eed02c9.tar.lz
gsoc2013-evolution-adac6994268794b434973701ed5f20386eed02c9.tar.xz
gsoc2013-evolution-adac6994268794b434973701ed5f20386eed02c9.tar.zst
gsoc2013-evolution-adac6994268794b434973701ed5f20386eed02c9.zip
Rewrote the old and broken alarm system. It never actually worked
1998-12-16 Miguel de Icaza <miguel@nuclecu.unam.mx> 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
Diffstat (limited to 'calendar/calendar.c')
-rw-r--r--calendar/calendar.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/calendar/calendar.c b/calendar/calendar.c
index 3f4b10aeaf..e510f1f1b1 100644
--- a/calendar/calendar.c
+++ b/calendar/calendar.c
@@ -14,8 +14,8 @@
#include <config.h>
#include <unistd.h>
-#include "alarm.h"
#include "calendar.h"
+#include "alarm.h"
#include "timeutil.h"
#include "../libversit/vcc.h"
@@ -42,7 +42,7 @@ try_add (iCalObject *ico, CalendarAlarm *alarm, time_t start, time_t end)
return;
if (alarm->trigger > calendar_day_end)
return;
- alarm_add (alarm->trigger, calendar_notify, ico);
+ alarm_add (alarm, &calendar_notify, ico);
}
static int