aboutsummaryrefslogtreecommitdiffstats
path: root/calendar
diff options
context:
space:
mode:
authorRodrigo Moya <rodrigo@ximian.com>2004-05-13 23:31:24 +0800
committerRodrigo Moya <rodrigo@src.gnome.org>2004-05-13 23:31:24 +0800
commit6ab7885bbe8a546cc9d5ebb585f0de420b6510eb (patch)
tree17823de7c070f7ea373f01d0f9d1fcf0fa5aa81b /calendar
parent56c0a85d7e0f96eec6bb7e601854e83f416f51f4 (diff)
downloadgsoc2013-evolution-6ab7885bbe8a546cc9d5ebb585f0de420b6510eb.tar
gsoc2013-evolution-6ab7885bbe8a546cc9d5ebb585f0de420b6510eb.tar.gz
gsoc2013-evolution-6ab7885bbe8a546cc9d5ebb585f0de420b6510eb.tar.bz2
gsoc2013-evolution-6ab7885bbe8a546cc9d5ebb585f0de420b6510eb.tar.lz
gsoc2013-evolution-6ab7885bbe8a546cc9d5ebb585f0de420b6510eb.tar.xz
gsoc2013-evolution-6ab7885bbe8a546cc9d5ebb585f0de420b6510eb.tar.zst
gsoc2013-evolution-6ab7885bbe8a546cc9d5ebb585f0de420b6510eb.zip
only get the email address for alarms if the backend supports email
2004-05-13 Rodrigo Moya <rodrigo@ximian.com> * gui/dialogs/alarm-page.c (add_clicked_cb): only get the email address for alarms if the backend supports email alarms. svn path=/trunk/; revision=25901
Diffstat (limited to 'calendar')
-rw-r--r--calendar/ChangeLog5
-rw-r--r--calendar/gui/dialogs/alarm-page.c5
2 files changed, 8 insertions, 2 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog
index 4b950c5e4f..ee7b6c652e 100644
--- a/calendar/ChangeLog
+++ b/calendar/ChangeLog
@@ -1,3 +1,8 @@
+2004-05-13 Rodrigo Moya <rodrigo@ximian.com>
+
+ * gui/dialogs/alarm-page.c (add_clicked_cb): only get the email address
+ for alarms if the backend supports email alarms.
+
2004-05-13 Not Zed <NotZed@Ximian.com>
Fixes #57644.
diff --git a/calendar/gui/dialogs/alarm-page.c b/calendar/gui/dialogs/alarm-page.c
index c3fec99683..ada79bc984 100644
--- a/calendar/gui/dialogs/alarm-page.c
+++ b/calendar/gui/dialogs/alarm-page.c
@@ -680,8 +680,9 @@ add_clicked_cb (GtkButton *button, gpointer data)
e_cal_component_alarm_set_action (alarm, action);
if (action == E_CAL_COMPONENT_ALARM_EMAIL && !e_cal_component_alarm_has_attendees (alarm)) {
char *email;
-
- if (!e_cal_get_alarm_email_address (COMP_EDITOR_PAGE (apage)->client, &email, NULL)) {
+
+ if (!e_cal_get_static_capability (COMP_EDITOR_PAGE (apage)->client, CAL_STATIC_CAPABILITY_NO_EMAIL_ALARMS)
+ && e_cal_get_alarm_email_address (COMP_EDITOR_PAGE (apage)->client, &email, NULL)) {
ECalComponentAttendee *a;
GSList attendee_list;