network: Rework NetDeviceWifi interface
The UI definitions of the Wi-Fi devices currently contain many widgets in the stack, such as the tower icon, the enable/disable switch and the status. In the new Wi-Fi panel, all those widgets will clutter the interface and break the entire UI. Fix that by splitting those widgets in two different containers: 1. The header_box container, with the menu button and the enable/disable switch. 2. The center_box widget, with the title and status labels, which will be consumed by the Wi-Fi panel to be the center widget of the headerbar. This commit also introduces two getters that expose those two containers. With that, another load of code could be simplified. https://bugzilla.gnome.org/show_bug.cgi?id=784818
This commit is contained in:
parent
3317e88de8
commit
cf62c0abb7
3 changed files with 124 additions and 170 deletions
|
@ -50,7 +50,9 @@ struct _NetDeviceWifiClass
|
|||
NetDeviceClass parent_class;
|
||||
};
|
||||
|
||||
GType net_device_wifi_get_type (void);
|
||||
GType net_device_wifi_get_type (void) G_GNUC_CONST;
|
||||
GtkWidget *net_device_wifi_get_header_widget (NetDeviceWifi *device_wifi);
|
||||
GtkWidget *net_device_wifi_get_title_widget (NetDeviceWifi *device_wifi);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue