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/gui/alarm-notify/alarm.c | 2 +- calendar/gui/alarm.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'calendar/gui') 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