[evolution-ews] Fix gtk version check for GtkComboBoxText, and make it build with older.
- From: David Woodhouse <dwmw2 src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-ews] Fix gtk version check for GtkComboBoxText, and make it build with older.
- Date: Wed, 22 Jun 2011 23:27:04 +0000 (UTC)
commit 8f4196e2be0334834472b5f7c76191dab4f4fc1e
Author: David Woodhouse <David Woodhouse intel com>
Date: Thu Jun 23 00:25:49 2011 +0100
Fix gtk version check for GtkComboBoxText, and make it build with older.
GtkComboBoxText was introduced in Gtk 2.24, and we need to define
GtkComboBoxText (to GtkComboBox) if we want the clear_combo() function to
compile.
.../exchange-ews-account-setup.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/account-setup-eplugin/exchange-ews-account-setup.c b/src/account-setup-eplugin/exchange-ews-account-setup.c
index f832ef2..cf62ae4 100644
--- a/src/account-setup-eplugin/exchange-ews-account-setup.c
+++ b/src/account-setup-eplugin/exchange-ews-account-setup.c
@@ -43,12 +43,13 @@
#define d(x) x
-#if GTK_CHECK_VERSION(3,0,0)
+#if GTK_CHECK_VERSION(2,24,0)
#else
#define GTK_COMBO_BOX_TEXT GTK_COMBO_BOX
#define GTK_IS_COMBO_BOX_TEXT GTK_IS_COMBO_BOX
#define gtk_combo_box_text_append_text gtk_combo_box_append_text
#define gtk_combo_box_text_new gtk_combo_box_new
+#define GtkComboBoxText GtkComboBox
#endif
gint e_plugin_lib_enable (EPlugin *ep, gint enable);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]