aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/alarm-notify
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 /calendar/gui/alarm-notify
parent9a388362b9869d1fdf1af85c2928b47965a68e79 (diff)
downloadgsoc2013-evolution-e37627d16f5d85cef7e143b32764529ad109d178.tar
gsoc2013-evolution-e37627d16f5d85cef7e143b32764529ad109d178.tar.gz
gsoc2013-evolution-e37627d16f5d85cef7e143b32764529ad109d178.tar.bz2
gsoc2013-evolution-e37627d16f5d85cef7e143b32764529ad109d178.tar.lz
gsoc2013-evolution-e37627d16f5d85cef7e143b32764529ad109d178.tar.xz
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
Diffstat (limited to 'calendar/gui/alarm-notify')
-rw-r--r--calendar/gui/alarm-notify/alarm-queue.c4
1 files changed, 4 insertions, 0 deletions
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,