[evolution/gnome-3-8] Avoid to use new EDS macros in stable branch
- From: Fabiano Fidêncio <ffidencio src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/gnome-3-8] Avoid to use new EDS macros in stable branch
- Date: Tue, 2 Jul 2013 15:42:00 +0000 (UTC)
commit ab9a969aecd11eb5878f0ed312755ae83f5de0a6
Author: Fabiano Fidêncio <fidencio redhat com>
Date: Tue Jul 2 16:54:03 2013 +0200
Avoid to use new EDS macros in stable branch
calendar/gui/dialogs/alarm-dialog.c | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/calendar/gui/dialogs/alarm-dialog.c b/calendar/gui/dialogs/alarm-dialog.c
index a51fade..4662594 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]