diff options
Diffstat (limited to 'calendar/gui/calendar-summary.c')
-rw-r--r-- | calendar/gui/calendar-summary.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/calendar/gui/calendar-summary.c b/calendar/gui/calendar-summary.c index 0d0c404769..163d56f524 100644 --- a/calendar/gui/calendar-summary.c +++ b/calendar/gui/calendar-summary.c @@ -39,11 +39,10 @@ #include <gnome-xml/parser.h> #include <gnome-xml/xmlmemory.h> -#include "cal-util/cal-component.h" -#include "cal-util/timeutil.h" -#include "alarm.h" +#include <cal-util/cal-component.h> +#include <cal-util/timeutil.h> +#include "alarm-notify/alarm.h" #include "calendar-model.h" - #include "calendar-summary.h" typedef struct { @@ -457,7 +456,7 @@ cal_opened_cb (CalClient *client, static void alarm_fn (gpointer alarm_id, - time_t old_t, + time_t trigger, gpointer data) { CalSummary *summary; @@ -465,9 +464,6 @@ alarm_fn (gpointer alarm_id, summary = data; - /* Remove the old alarm, and start a new one for the next midnight */ - alarm_remove (alarm_id); - t = time (NULL); day_end = time_day_end (t); summary->alarm = alarm_add (day_end, alarm_fn, summary, NULL); |