[network-manager-applet] editor: avoid deprecation errors



commit e684b88d96942db33d600507f71fedb337a27bac
Author: Dan Williams <dcbw redhat com>
Date:   Mon Jun 10 16:41:58 2013 -0500

    editor: avoid deprecation errors
    
    We still want to use these for a while.

 src/connection-editor/page-mobile.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/connection-editor/page-mobile.c b/src/connection-editor/page-mobile.c
index f199741..b0ba724 100644
--- a/src/connection-editor/page-mobile.c
+++ b/src/connection-editor/page-mobile.c
@@ -119,6 +119,7 @@ populate_gsm_ui (CEPageMobile *self, NMConnection *connection)
        if (s)
                gtk_entry_set_text (priv->network_id, s);
 
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
        switch (nm_setting_gsm_get_network_type (setting)) {
        case NM_SETTING_GSM_NETWORK_TYPE_UMTS_HSPA:
                type_idx = NET_TYPE_3G;
@@ -144,6 +145,7 @@ populate_gsm_ui (CEPageMobile *self, NMConnection *connection)
                break;
        }
        gtk_combo_box_set_active (priv->network_type, type_idx);
+G_GNUC_END_IGNORE_DEPRECATIONS
 
        gtk_toggle_button_set_active (priv->roaming_allowed,
                                      !nm_setting_gsm_get_home_only (setting));


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]