[gnome-control-center] Network: don't use deprecated libnm-glib functions
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] Network: don't use deprecated libnm-glib functions
- Date: Thu, 17 Mar 2011 04:38:28 +0000 (UTC)
commit f456f06153b462f037cb60ab825ba0fa22d38fdd
Author: Matthias Clasen <mclasen redhat com>
Date: Thu Mar 17 00:35:19 2011 -0400
Network: don't use deprecated libnm-glib functions
nm_access_point_get_hw_address() has been deprecated.
panels/network/cc-network-panel.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/panels/network/cc-network-panel.c b/panels/network/cc-network-panel.c
index 5ed0fa7..5680c8c 100644
--- a/panels/network/cc-network-panel.c
+++ b/panels/network/cc-network-panel.c
@@ -626,7 +626,7 @@ add_access_point (CcNetworkPanel *panel, NMAccessPoint *ap, NMAccessPoint *activ
CcNetworkPanelPrivate *priv = panel->priv;
const GByteArray *ssid;
const gchar *ssid_text;
- const gchar *hw_address;
+ const gchar *bssid;
GtkListStore *liststore_wireless_network;
GtkTreeIter treeiter;
GtkWidget *widget;
@@ -639,11 +639,11 @@ add_access_point (CcNetworkPanel *panel, NMAccessPoint *ap, NMAccessPoint *activ
liststore_wireless_network = GTK_LIST_STORE (gtk_builder_get_object (priv->builder,
"liststore_wireless_network"));
- hw_address = nm_access_point_get_hw_address (ap);
+ bssid = nm_access_point_get_bssid (ap);
gtk_list_store_append (liststore_wireless_network, &treeiter);
gtk_list_store_set (liststore_wireless_network,
&treeiter,
- PANEL_WIRELESS_COLUMN_ID, hw_address,
+ PANEL_WIRELESS_COLUMN_ID, bssid,
PANEL_WIRELESS_COLUMN_TITLE, ssid_text,
PANEL_WIRELESS_COLUMN_SORT, ssid_text,
PANEL_WIRELESS_COLUMN_STRENGTH, nm_access_point_get_strength (ap),
@@ -653,7 +653,7 @@ add_access_point (CcNetworkPanel *panel, NMAccessPoint *ap, NMAccessPoint *activ
/* is this what we're on already? */
if (active == NULL)
return;
- if (g_strcmp0 (hw_address, nm_access_point_get_hw_address (active)) == 0) {
+ if (g_strcmp0 (bssid, nm_access_point_get_bssid (active)) == 0) {
widget = GTK_WIDGET (gtk_builder_get_object (priv->builder,
"combobox_network_name"));
gtk_combo_box_set_active_iter (GTK_COMBO_BOX (widget), &treeiter);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]