[evolution-ews] Add compatibility to gtk_combo_box_text_append_text with gtk+ < 3.0 versions.
- From: Chenthill Palanisamy <pchen src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-ews] Add compatibility to gtk_combo_box_text_append_text with gtk+ < 3.0 versions.
- Date: Wed, 22 Jun 2011 10:01:44 +0000 (UTC)
commit 84e2e06c7d4ddce4b19f0f0628f24197dd68a2ae
Author: Chenthill Palanisamy <pchenthill novell com>
Date: Wed Jun 22 15:30:25 2011 +0530
Add compatibility to gtk_combo_box_text_append_text with gtk+ < 3.0 versions.
.../exchange-ews-account-setup.c | 9 ++++++++-
1 files changed, 8 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 e5fed95..10eabf5 100644
--- a/src/account-setup-eplugin/exchange-ews-account-setup.c
+++ b/src/account-setup-eplugin/exchange-ews-account-setup.c
@@ -43,6 +43,13 @@
#define d(x) x
+#if GTK_CHECK_VERSION(3,0,0)
+#else
+#define GTK_COMBO_BOX_TEXT GTK_COMBO_BOX
+#define gtk_combo_box_text_append_text gtk_combo_box_append_text
+#define gtk_combo_box_text_new gtk_combo_box_new
+#endif
+
gint e_plugin_lib_enable (EPlugin *ep, gint enable);
/* Account Setup */
@@ -611,7 +618,7 @@ org_gnome_ews_oab_settings (EPlugin *epl, EConfigHookItemFactoryData *data)
/* OAL combo and fetch OAL button */
hbox = gtk_hbox_new (FALSE, 6);
- oal_combo = gtk_combo_box_new ();
+ oal_combo = gtk_combo_box_text_new ();
gtk_box_pack_start (GTK_BOX (hbox), oal_combo, TRUE, TRUE, 0);
fetch_button = gtk_button_new_with_mnemonic (_("Fetch list"));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]