aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/alarm-notify/alarm.c
diff options
context:
space:
mode:
authorChenthill Palanisamy <pchen@src.gnome.org>2005-11-08 16:47:49 +0800
committerChenthill Palanisamy <pchen@src.gnome.org>2005-11-08 16:47:49 +0800
commit35b59bde31bebcf1a823a8b3e5262e73e719237a (patch)
tree34fddbec57373687cab6b83dba0b578e34c0a906 /calendar/gui/alarm-notify/alarm.c
parente3b6a2229da0aedf826cbf474a4cb0c657269d3a (diff)
downloadgsoc2013-evolution-35b59bde31bebcf1a823a8b3e5262e73e719237a.tar.gz
gsoc2013-evolution-35b59bde31bebcf1a823a8b3e5262e73e719237a.tar.zst
gsoc2013-evolution-35b59bde31bebcf1a823a8b3e5262e73e719237a.zip
Changed the code to load alarms from current day beginning if the last notification
time is beyond current day's beginning time in the function load_alarms_for_today() and removed a check in the function setup_timeout() svn path=/trunk/; revision=30578
Diffstat (limited to 'calendar/gui/alarm-notify/alarm.c')
-rw-r--r--calendar/gui/alarm-notify/alarm.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/calendar/gui/alarm-notify/alarm.c b/calendar/gui/alarm-notify/alarm.c
index 3d371d9f9b..d29ad3133a 100644
--- a/calendar/gui/alarm-notify/alarm.c
+++ b/calendar/gui/alarm-notify/alarm.c
@@ -167,16 +167,14 @@ queue_alarm (AlarmRecord *ar)
/* Insert the new alarm in order if the alarm's trigger time is
after the current time */
- if (ar->trigger > time (NULL)) {
- alarms = g_list_insert_sorted (alarms, ar, compare_alarm_by_time);
+ alarms = g_list_insert_sorted (alarms, ar, compare_alarm_by_time);
- /* If there first item on the list didn't change, the time out is fine */
- if (old_head == alarms)
- return;
+ /* If there first item on the list didn't change, the time out is fine */
+ if (old_head == alarms)
+ return;
- /* Set the timer for removal upon activation */
- setup_timeout ();
- }
+ /* Set the timer for removal upon activation */
+ setup_timeout ();
}