aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWang Xin <jedy.wang@sun.com>2006-12-04 17:20:52 +0800
committerJedy Jedy Wang <jedywang@src.gnome.org>2006-12-04 17:20:52 +0800
commite37627d16f5d85cef7e143b32764529ad109d178 (patch)
tree9f63b7e692329d7b881db9b78023ddd7c587352a
parent9a388362b9869d1fdf1af85c2928b47965a68e79 (diff)
downloadgsoc2013-evolution-e37627d16f5d85cef7e143b32764529ad109d178.tar.gz
gsoc2013-evolution-e37627d16f5d85cef7e143b32764529ad109d178.tar.zst
gsoc2013-evolution-e37627d16f5d85cef7e143b32764529ad109d178.zip
Fix for bug #380064
2006-11-28 Wang Xin <jedy.wang@sun.com> Fix for bug #380064 * gui/alarm-notify/alarm-queue.c: (mail_notification): Only popup the dialog if calendar backend does not support email alarm. svn path=/trunk/; revision=33038
-rw-r--r--calendar/ChangeLog8
-rw-r--r--calendar/gui/alarm-notify/alarm-queue.c4
2 files changed, 12 insertions, 0 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog
index 22c2d4f89a..8b21550e06 100644
--- a/calendar/ChangeLog
+++ b/calendar/ChangeLog
@@ -1,3 +1,11 @@
+2006-11-28 Wang Xin <jedy.wang@sun.com>
+
+ Fix for bug #380064
+
+ * gui/alarm-notify/alarm-queue.c: (mail_notification): Only
+ popup the dialog if calendar backend does not support
+ email alarm.
+
2006-12-03 Harish Krishnaswamy <kharish@novell.com>
* gui/calendar-config.c:
diff --git a/calendar/gui/alarm-notify/alarm-queue.c b/calendar/gui/alarm-notify/alarm-queue.c
index 08f1aadd48..d635eb6f74 100644
--- a/calendar/gui/alarm-notify/alarm-queue.c
+++ b/calendar/gui/alarm-notify/alarm-queue.c
@@ -1696,6 +1696,10 @@ mail_notification (time_t trigger, CompQueuedAlarms *cqa, gpointer alarm_id)
d(printf("%s:%d (mail_notification)\n",__FILE__, __LINE__));
+ if (!e_cal_get_static_capability (cqa->parent_client->client,
+ CAL_STATIC_CAPABILITY_NO_EMAIL_ALARMS))
+ return;
+
dialog = gtk_dialog_new_with_buttons (_("Warning"),
NULL, 0,
GTK_STOCK_OK, GTK_RESPONSE_CANCEL,