aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFabiano FidĂȘncio <fidencio@redhat.com>2013-06-29 20:50:43 +0800
committerFabiano FidĂȘncio <fidencio@redhat.com>2013-07-02 10:53:56 +0800
commitd65f595c21f7aadf5d38e840c5d4675949322294 (patch)
tree6d60b7a648ee1d6f560b693d93fb116a67b98862
parentef518240c98208f3dbfc0982e57df81398429307 (diff)
downloadgsoc2013-evolution-d65f595c21f7aadf5d38e840c5d4675949322294.tar
gsoc2013-evolution-d65f595c21f7aadf5d38e840c5d4675949322294.tar.gz
gsoc2013-evolution-d65f595c21f7aadf5d38e840c5d4675949322294.tar.bz2
gsoc2013-evolution-d65f595c21f7aadf5d38e840c5d4675949322294.tar.lz
gsoc2013-evolution-d65f595c21f7aadf5d38e840c5d4675949322294.tar.xz
gsoc2013-evolution-d65f595c21f7aadf5d38e840c5d4675949322294.tar.zst
gsoc2013-evolution-d65f595c21f7aadf5d38e840c5d4675949322294.zip
Bug #703194 - Custom alarm message is REMINDER
-rw-r--r--calendar/gui/dialogs/alarm-dialog.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/calendar/gui/dialogs/alarm-dialog.c b/calendar/gui/dialogs/alarm-dialog.c
index 77a5df5c4b..12dba4ce3e 100644
--- a/calendar/gui/dialogs/alarm-dialog.c
+++ b/calendar/gui/dialogs/alarm-dialog.c
@@ -240,6 +240,15 @@ alarm_to_dialog (Dialog *dialog)
populate_relative_time_combobox_widget (
dialog->time_combo, dialog->cal_client, time_map, E_CAL_COMPONENT_ALARM_TRIGGER_RELATIVE_END);
+ /*
+ * If the client doesn't support set alarm description, disable the related widgets
+ */
+ if (e_client_check_capability (E_CLIENT (dialog->cal_client), CAL_STATIC_CAPABILITY_NO_ALARM_DESCRIPTION)) {
+ gtk_widget_hide (dialog->dalarm_group);
+ gtk_widget_hide (dialog->dalarm_message);
+ gtk_widget_hide (dialog->dalarm_description);
+ }
+
/* Set a default address if possible */
if (!e_client_check_capability (E_CLIENT (dialog->cal_client), CAL_STATIC_CAPABILITY_NO_EMAIL_ALARMS)
&& !e_cal_component_alarm_has_attendees (dialog->alarm)