[evolution/gnome-3-8] Bug #703194 - Custom alarm message is REMINDER



commit d65f595c21f7aadf5d38e840c5d4675949322294
Author: Fabiano Fidêncio <fidencio redhat com>
Date:   Sat Jun 29 14:50:43 2013 +0200

    Bug #703194 - Custom alarm message is REMINDER

 calendar/gui/dialogs/alarm-dialog.c |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/calendar/gui/dialogs/alarm-dialog.c b/calendar/gui/dialogs/alarm-dialog.c
index 77a5df5..12dba4c 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)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]