aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/alarm-notify/alarm-queue.c
diff options
context:
space:
mode:
authorRodrigo Moya <rodrigo@ximian.com>2004-02-18 19:21:03 +0800
committerRodrigo Moya <rodrigo@src.gnome.org>2004-02-18 19:21:03 +0800
commit8153af7c16a161b93f048142896c8a0c397fa41e (patch)
tree541b2202c12f3e7dad277c1cf5de49d10ddf365c /calendar/gui/alarm-notify/alarm-queue.c
parent88f39730dd7b2615ab78dbc53f7218a2a15787e0 (diff)
downloadgsoc2013-evolution-8153af7c16a161b93f048142896c8a0c397fa41e.tar
gsoc2013-evolution-8153af7c16a161b93f048142896c8a0c397fa41e.tar.gz
gsoc2013-evolution-8153af7c16a161b93f048142896c8a0c397fa41e.tar.bz2
gsoc2013-evolution-8153af7c16a161b93f048142896c8a0c397fa41e.tar.lz
gsoc2013-evolution-8153af7c16a161b93f048142896c8a0c397fa41e.tar.xz
gsoc2013-evolution-8153af7c16a161b93f048142896c8a0c397fa41e.tar.zst
gsoc2013-evolution-8153af7c16a161b93f048142896c8a0c397fa41e.zip
add 1 second to the last notification time, or we'll get many times the
2004-02-18 Rodrigo Moya <rodrigo@ximian.com> * 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
Diffstat (limited to 'calendar/gui/alarm-notify/alarm-queue.c')
-rw-r--r--calendar/gui/alarm-notify/alarm-queue.c2
1 files changed, 2 insertions, 0 deletions
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 ();