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:
parent
65b90d5951
commit
3c61cee1bb
2 changed files with 2 additions and 2 deletions
|
@ -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 */
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue