aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFabiano FidĂȘncio <fidencio@redhat.com>2013-07-02 22:54:03 +0800
committerFabiano FidĂȘncio <fidencio@redhat.com>2013-07-02 23:41:02 +0800
commitab9a969aecd11eb5878f0ed312755ae83f5de0a6 (patch)
treedc3b3748f389f54ccbfa5ee553fd422ff8e7cbf6
parentc97471bb1a3ea99f50c6906a55aea09720a45954 (diff)
downloadgsoc2013-evolution-ab9a969aecd11eb5878f0ed312755ae83f5de0a6.tar
gsoc2013-evolution-ab9a969aecd11eb5878f0ed312755ae83f5de0a6.tar.gz
gsoc2013-evolution-ab9a969aecd11eb5878f0ed312755ae83f5de0a6.tar.bz2
gsoc2013-evolution-ab9a969aecd11eb5878f0ed312755ae83f5de0a6.tar.lz
gsoc2013-evolution-ab9a969aecd11eb5878f0ed312755ae83f5de0a6.tar.xz
gsoc2013-evolution-ab9a969aecd11eb5878f0ed312755ae83f5de0a6.tar.zst
gsoc2013-evolution-ab9a969aecd11eb5878f0ed312755ae83f5de0a6.zip
Avoid to use new EDS macros in stable branch
-rw-r--r--calendar/gui/dialogs/alarm-dialog.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/calendar/gui/dialogs/alarm-dialog.c b/calendar/gui/dialogs/alarm-dialog.c
index a51fadef5f..4662594aeb 100644
--- a/calendar/gui/dialogs/alarm-dialog.c
+++ b/calendar/gui/dialogs/alarm-dialog.c
@@ -194,8 +194,10 @@ populate_relative_time_combobox_widget (GtkWidget *combobox,
gboolean alarm_after_start;
gint i;
- alarm_after_start = !e_client_check_capability (
- E_CLIENT (cal_client), CAL_STATIC_CAPABILITY_NO_ALARM_AFTER_START);
+ /*
+ * This capability was added after the 3.8.0 release
+ */
+ alarm_after_start = !e_client_check_capability (E_CLIENT (cal_client), "no-alarm-after-start");
model = gtk_combo_box_get_model (GTK_COMBO_BOX (combobox));
valid = gtk_tree_model_get_iter_first (model, &iter);
@@ -242,8 +244,9 @@ alarm_to_dialog (Dialog *dialog)
/*
* If the client doesn't support set alarm description, disable the related widgets
+ * This capability was added after the 3.8.0 release
*/
- if (e_client_check_capability (E_CLIENT (dialog->cal_client), CAL_STATIC_CAPABILITY_NO_ALARM_DESCRIPTION)) {
+ if (e_client_check_capability (E_CLIENT (dialog->cal_client), "no-alarm-description")) {
gtk_widget_hide (dialog->dalarm_group);
gtk_widget_hide (dialog->dalarm_message);
gtk_widget_hide (dialog->dalarm_description);