From d83e3ba3128794bf8b5fba06df9c550d56ef51ee Mon Sep 17 00:00:00 2001 From: Federico Mena Quintero Date: Wed, 9 Aug 2000 22:51:11 +0000 Subject: Oops, subtract the new alarm's trigger time from the current time. 2000-08-09 Federico Mena Quintero * gui/alarm.c (pop_alarm): Oops, subtract the new alarm's trigger time from the current time. svn path=/trunk/; revision=4674 --- calendar/ChangeLog | 5 +++++ calendar/gui/alarm-notify/alarm.c | 2 +- calendar/gui/alarm.c | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/calendar/ChangeLog b/calendar/ChangeLog index 51565e559e..445d11e473 100644 --- a/calendar/ChangeLog +++ b/calendar/ChangeLog @@ -1,3 +1,8 @@ +2000-08-09 Federico Mena Quintero + + * gui/alarm.c (pop_alarm): Oops, subtract the new alarm's trigger + time from the current time. + 2000-08-09 Christopher James Lahey * cal-client/cal-client.c: Fixed a warning. diff --git a/calendar/gui/alarm-notify/alarm.c b/calendar/gui/alarm-notify/alarm.c index 257be27ec5..c89b65ff5e 100644 --- a/calendar/gui/alarm-notify/alarm.c +++ b/calendar/gui/alarm-notify/alarm.c @@ -97,7 +97,7 @@ pop_alarm (void) now = time (NULL); new_ar = alarms->data; - if (!setup_itimer (new_ar->trigger)) { + if (!setup_itimer (new_ar->trigger - now)) { g_message ("pop_alarm(): Could not reset the timer! " "Weird things will happen."); diff --git a/calendar/gui/alarm.c b/calendar/gui/alarm.c index 257be27ec5..c89b65ff5e 100644 --- a/calendar/gui/alarm.c +++ b/calendar/gui/alarm.c @@ -97,7 +97,7 @@ pop_alarm (void) now = time (NULL); new_ar = alarms->data; - if (!setup_itimer (new_ar->trigger)) { + if (!setup_itimer (new_ar->trigger - now)) { g_message ("pop_alarm(): Could not reset the timer! " "Weird things will happen."); -- cgit v1.2.3