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.
This commit is contained in:
Lubomir Rintel 2018-02-23 15:22:41 +01:00
parent 65b90d5951
commit 3c61cee1bb
2 changed files with 2 additions and 2 deletions

View file

@ -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 */

View file

@ -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;
}