[network-manager-applet/NMA_0_8] mobile: fix for deprecations in recent GTK+
- From: Dan Williams <dcbw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [network-manager-applet/NMA_0_8] mobile: fix for deprecations in recent GTK+
- Date: Tue, 7 Dec 2010 18:17:41 +0000 (UTC)
commit 16b0c7d8cd2d2f4c932b475857fb3df961888fa8
Author: Dan Williams <dcbw redhat com>
Date: Sat Nov 6 13:31:13 2010 -0500
mobile: fix for deprecations in recent GTK+
src/utils/mobile-wizard.c | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
---
diff --git a/src/utils/mobile-wizard.c b/src/utils/mobile-wizard.c
index f08e4c8..faea9d7 100644
--- a/src/utils/mobile-wizard.c
+++ b/src/utils/mobile-wizard.c
@@ -746,11 +746,23 @@ providers_setup (MobileWizard *self)
gtk_table_attach (GTK_TABLE (unlisted_table), alignment,
1, 2, 0, 1, GTK_EXPAND | GTK_FILL, 0, 6, 6);
+#if GTK_CHECK_VERSION(2,23,0)
+ self->provider_unlisted_type_combo = gtk_combo_box_text_new ();
+#else
self->provider_unlisted_type_combo = gtk_combo_box_new_text ();
+#endif
gtk_label_set_mnemonic_widget (GTK_LABEL (label), self->provider_unlisted_type_combo);
+#if GTK_CHECK_VERSION(2,23,0)
+ gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT (self->provider_unlisted_type_combo),
+#else
gtk_combo_box_append_text (GTK_COMBO_BOX (self->provider_unlisted_type_combo),
+#endif
_("My provider uses GSM technology (GPRS, EDGE, UMTS, HSPA)"));
+#if GTK_CHECK_VERSION(2,23,0)
+ gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT (self->provider_unlisted_type_combo),
+#else
gtk_combo_box_append_text (GTK_COMBO_BOX (self->provider_unlisted_type_combo),
+#endif
_("My provider uses CDMA technology (1xRTT, EVDO)"));
gtk_combo_box_set_active (GTK_COMBO_BOX (self->provider_unlisted_type_combo), 0);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]