[gnome-control-center] network: use nm_device_get_description()
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] network: use nm_device_get_description()
- Date: Tue, 17 Jul 2018 14:08:15 +0000 (UTC)
commit 3c61cee1bb018fc55109752c1bcc24c357179d4d
Author: Lubomir Rintel <lkundrak v3 sk>
Date: Fri Feb 23 15:22:41 2018 +0100
network: use nm_device_get_description()
It's better for human-readable display than nm_device_get_product().
Unlike nm_device_get_product(), it never returns an empty string and
sanitizes the string.
With NM 1.12 it goes to great lengths to clean up the messy udev
strings.
panels/network/cc-wifi-panel.c | 2 +-
panels/network/net-device-wifi.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/panels/network/cc-wifi-panel.c b/panels/network/cc-wifi-panel.c
index e67ace406..bd7a3bea1 100644
--- a/panels/network/cc-wifi-panel.c
+++ b/panels/network/cc-wifi-panel.c
@@ -288,7 +288,7 @@ update_devices_names (CcWifiPanel *self)
object = g_ptr_array_index (self->devices, i);
device = net_device_get_nm_device (NET_DEVICE (object));
- net_object_set_title (object, nm_device_get_product (device));
+ net_object_set_title (object, nm_device_get_description (device));
}
/* Remove the widget at the "single" page */
diff --git a/panels/network/net-device-wifi.c b/panels/network/net-device-wifi.c
index 5b9a77a1f..b2d5b3d5f 100644
--- a/panels/network/net-device-wifi.c
+++ b/panels/network/net-device-wifi.c
@@ -116,7 +116,7 @@ device_wifi_proxy_add_to_stack (NetObject *object,
"notebook_view"));
gtk_stack_add_titled (stack, widget,
net_object_get_id (object),
- nm_device_get_product (nmdevice));
+ nm_device_get_description (nmdevice));
return widget;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]