diff options
author | Arturo Espinosa <unammx@src.gnome.org> | 1998-04-29 10:38:48 +0800 |
---|---|---|
committer | Arturo Espinosa <unammx@src.gnome.org> | 1998-04-29 10:38:48 +0800 |
commit | 282114a676e69a0b4c0656b3a6266d27165b2039 (patch) | |
tree | d34c5be00109f8f6af69412bbe67a6265f112098 /calendar/gui/alarm-notify | |
parent | 55ae95fe78692dfa59a17520b40b6ac89fcad706 (diff) | |
download | gsoc2013-evolution-282114a676e69a0b4c0656b3a6266d27165b2039.tar.gz gsoc2013-evolution-282114a676e69a0b4c0656b3a6266d27165b2039.tar.zst gsoc2013-evolution-282114a676e69a0b4c0656b3a6266d27165b2039.zip |
Lots of fixes:
Lots of fixes:
1. Alarms are rescheduled when an event has been changed.
2. Avoid emitting spurious event changes.
3. Applied black magic to get the mail-notification
working.
Miguel.
svn path=/trunk/; revision=199
Diffstat (limited to 'calendar/gui/alarm-notify')
-rw-r--r-- | calendar/gui/alarm-notify/alarm.c | 5 | ||||
-rw-r--r-- | calendar/gui/alarm-notify/alarm.h | 2 |
2 files changed, 4 insertions, 3 deletions
diff --git a/calendar/gui/alarm-notify/alarm.c b/calendar/gui/alarm-notify/alarm.c index aaa67f0aea..6573a1be3d 100644 --- a/calendar/gui/alarm-notify/alarm.c +++ b/calendar/gui/alarm-notify/alarm.c @@ -103,7 +103,7 @@ alarm_add (time_t alarm_time, AlarmFunction fn, void *closure) } } -void +int alarm_kill (void *closure_key) { GList *p; @@ -117,9 +117,10 @@ alarm_kill (void *closure_key) head_alarm = alarms->data; else head_alarm = NULL; - return; + return 1; } } + return 0; } void diff --git a/calendar/gui/alarm-notify/alarm.h b/calendar/gui/alarm-notify/alarm.h index 079eb79121..d37ff0c1bf 100644 --- a/calendar/gui/alarm-notify/alarm.h +++ b/calendar/gui/alarm-notify/alarm.h @@ -7,6 +7,6 @@ typedef void (*AlarmFunction)(time_t time, void *closuse); void alarm_init (void); void alarm_add (time_t alarm_time, AlarmFunction fn, void *closure); -void alarm_kill (void *closure); +int alarm_kill (void *closure); #endif |