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:50:28 +0800
commite7d2bf0e9f2607eb8f32c5f56bad13a1f0f1a9fd (patch)
tree4185fb0f374976674e6e64fce98c07db02f26a17
parentbe217ae4c574b82a8ecbc7dbb506aca36f6e56fa (diff)
downloadgsoc2013-evolution-e7d2bf0e9f2607eb8f32c5f56bad13a1f0f1a9fd.tar
gsoc2013-evolution-e7d2bf0e9f2607eb8f32c5f56bad13a1f0f1a9fd.tar.gz
gsoc2013-evolution-e7d2bf0e9f2607eb8f32c5f56bad13a1f0f1a9fd.tar.bz2
gsoc2013-evolution-e7d2bf0e9f2607eb8f32c5f56bad13a1f0f1a9fd.tar.lz
gsoc2013-evolution-e7d2bf0e9f2607eb8f32c5f56bad13a1f0f1a9fd.tar.xz
gsoc2013-evolution-e7d2bf0e9f2607eb8f32c5f56bad13a1f0f1a9fd.tar.zst
gsoc2013-evolution-e7d2bf0e9f2607eb8f32c5f56bad13a1f0f1a9fd.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)