From 8153af7c16a161b93f048142896c8a0c397fa41e Mon Sep 17 00:00:00 2001 From: Rodrigo Moya Date: Wed, 18 Feb 2004 11:21:03 +0000 Subject: add 1 second to the last notification time, or we'll get many times the 2004-02-18 Rodrigo Moya * gui/alarm-notify/alarm-queue.c (query_objects_changed_cb): add 1 second to the last notification time, or we'll get many times the same notification. svn path=/trunk/; revision=24772 --- calendar/gui/alarm-notify/alarm-queue.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'calendar/gui') diff --git a/calendar/gui/alarm-notify/alarm-queue.c b/calendar/gui/alarm-notify/alarm-queue.c index 9b5a94d2b0..1cd96af787 100644 --- a/calendar/gui/alarm-notify/alarm-queue.c +++ b/calendar/gui/alarm-notify/alarm-queue.c @@ -523,6 +523,8 @@ query_objects_changed_cb (ECal *client, GList *objects, gpointer data) from = config_data_get_last_notification_time (); if (from == -1) from = time (NULL); + else + from += 1; /* we add 1 to make sure the alarm is not displayed twice */ zone = config_data_get_timezone (); -- cgit v1.2.3