diff options
author | Federico Mena Quintero <federico@ximian.com> | 2001-02-27 04:21:53 +0800 |
---|---|---|
committer | Federico Mena Quintero <federico@src.gnome.org> | 2001-02-27 04:21:53 +0800 |
commit | e45e270823acb300fd0fc17e685aecb075f1a0b7 (patch) | |
tree | 13dea5d2ba6a14300e1c21800cdaa63d68527d13 /calendar/gui/calendar-summary.c | |
parent | a596227e1c1b3225751a276e9efab60e9eea4110 (diff) | |
download | gsoc2013-evolution-e45e270823acb300fd0fc17e685aecb075f1a0b7.tar gsoc2013-evolution-e45e270823acb300fd0fc17e685aecb075f1a0b7.tar.gz gsoc2013-evolution-e45e270823acb300fd0fc17e685aecb075f1a0b7.tar.bz2 gsoc2013-evolution-e45e270823acb300fd0fc17e685aecb075f1a0b7.tar.lz gsoc2013-evolution-e45e270823acb300fd0fc17e685aecb075f1a0b7.tar.xz gsoc2013-evolution-e45e270823acb300fd0fc17e685aecb075f1a0b7.tar.zst gsoc2013-evolution-e45e270823acb300fd0fc17e685aecb075f1a0b7.zip |
Create a little stand-alone library for the low-level alarm trigger
2001-02-26 Federico Mena Quintero <federico@ximian.com>
* gui/alarm-notify/Makefile.am (libalarm_a_SOURCES): Create a
little stand-alone library for the low-level alarm trigger
mechanism. This is so that the GUI parts of the calendar can use
it in addition to the alarm daemon.
* gui/main.c: #include "alarm-notify/alarm.h".
* gui/calendar-summary.c: Likewise.
(alarm_fn): Do not remove the previous alarm; it is removed
automatically when it is triggered.
* gui/Makefile.am (evolution_calendar_SOURCES): Removed alarm.[ch]
from the sources.
* gui/alarm.[ch]: Removed obsolete files.
svn path=/trunk/; revision=8394
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); |