aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRodrigo Moya <rodrigo@ximian.com>2003-04-10 23:10:32 +0800
committerRodrigo Moya <rodrigo@src.gnome.org>2003-04-10 23:10:32 +0800
commit8cd1f8a7544ef08a5997a17af9c14dd97b50ccd8 (patch)
tree6a2a3b807738e42765da5d53038b273da717ef1a
parentc58790758eddfd7bc1eba2f68d61f347515a1cca (diff)
downloadgsoc2013-evolution-8cd1f8a7544ef08a5997a17af9c14dd97b50ccd8.tar
gsoc2013-evolution-8cd1f8a7544ef08a5997a17af9c14dd97b50ccd8.tar.gz
gsoc2013-evolution-8cd1f8a7544ef08a5997a17af9c14dd97b50ccd8.tar.bz2
gsoc2013-evolution-8cd1f8a7544ef08a5997a17af9c14dd97b50ccd8.tar.lz
gsoc2013-evolution-8cd1f8a7544ef08a5997a17af9c14dd97b50ccd8.tar.xz
gsoc2013-evolution-8cd1f8a7544ef08a5997a17af9c14dd97b50ccd8.tar.zst
gsoc2013-evolution-8cd1f8a7544ef08a5997a17af9c14dd97b50ccd8.zip
only remove the alarm for backends that want it (Exchange).
2003-04-10 Rodrigo Moya <rodrigo@ximian.com> * gui/alarm-notify/alarm-queue.c (remove_queued_alarm): only remove the alarm for backends that want it (Exchange). svn path=/trunk/; revision=20801
-rw-r--r--calendar/ChangeLog5
-rw-r--r--calendar/gui/alarm-notify/alarm-queue.c4
2 files changed, 8 insertions, 1 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog
index 0083402378..abab644a57 100644
--- a/calendar/ChangeLog
+++ b/calendar/ChangeLog
@@ -1,5 +1,10 @@
2003-04-10 Rodrigo Moya <rodrigo@ximian.com>
+ * gui/alarm-notify/alarm-queue.c (remove_queued_alarm): only remove
+ the alarm for backends that want it (Exchange).
+
+2003-04-10 Rodrigo Moya <rodrigo@ximian.com>
+
* cal-util/cal-util.h: added #define's for static capabilities.
* pcs/cal-backend-file.c (cal_backend_file_get_static_capabilities):
diff --git a/calendar/gui/alarm-notify/alarm-queue.c b/calendar/gui/alarm-notify/alarm-queue.c
index f2bac1bc3d..f117e53723 100644
--- a/calendar/gui/alarm-notify/alarm-queue.c
+++ b/calendar/gui/alarm-notify/alarm-queue.c
@@ -217,7 +217,9 @@ remove_queued_alarm (CompQueuedAlarms *cqa, gpointer alarm_id,
cqa->queued_alarms = g_slist_remove_link (cqa->queued_alarms, l);
g_slist_free_1 (l);
- if (remove_alarm) {
+ if (remove_alarm &&
+ cal_client_get_static_capability (cqa->parent_client->client,
+ CAL_STATIC_CAPABILITY_REMOVE_ALARMS)) {
cal_component_remove_alarm (cqa->alarms->comp, qa->instance->auid);
cqa->expecting_update = TRUE;
cal_client_update_object (cqa->parent_client->client, cqa->alarms->comp);