network: Add Wi-Fi widgets using device product as title
When there are multiple Wi-Fi devices, we must show a stack switcher in the header of the Wi-Fi panel with the name of the device. The problem is that, currently, NetDeviceWifi does not add its widgets to the main stack setting a stack title, and so the stack switcher is empty. Fix that by always adding the widgets to the stack using the device product name as title. https://bugzilla.gnome.org/show_bug.cgi?id=784818
This commit is contained in:
parent
cf62c0abb7
commit
b12a56d97c
1 changed files with 6 additions and 1 deletions
|
@ -97,9 +97,12 @@ device_wifi_proxy_add_to_stack (NetObject *object,
|
|||
GtkStack *stack,
|
||||
GtkSizeGroup *heading_size_group)
|
||||
{
|
||||
NMDevice *nmdevice;
|
||||
GtkWidget *widget;
|
||||
NetDeviceWifi *device_wifi = NET_DEVICE_WIFI (object);
|
||||
|
||||
nmdevice = net_device_get_nm_device (NET_DEVICE (object));
|
||||
|
||||
/* add widgets to size group */
|
||||
widget = GTK_WIDGET (gtk_builder_get_object (device_wifi->priv->builder,
|
||||
"heading_ipv4"));
|
||||
|
@ -107,7 +110,9 @@ device_wifi_proxy_add_to_stack (NetObject *object,
|
|||
|
||||
widget = GTK_WIDGET (gtk_builder_get_object (device_wifi->priv->builder,
|
||||
"notebook_view"));
|
||||
gtk_stack_add_named (stack, widget, net_object_get_id (object));
|
||||
gtk_stack_add_titled (stack, widget,
|
||||
net_object_get_id (object),
|
||||
nm_device_get_product (nmdevice));
|
||||
|
||||
return widget;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue