diff options
author | Georges Basile Stavracas Neto <georges.stavracas@gmail.com> | 2021-11-29 10:37:01 -0300 |
---|---|---|
committer | Georges Basile Stavracas Neto <georges.stavracas@gmail.com> | 2021-12-14 22:34:21 -0300 |
commit | efbad6eb505dad57776fa8e7b8b1c5209dc336af (patch) | |
tree | 59baef20f889719bb7e801daae66c956208b8c27 /shell | |
parent | d189a67000f1920ecab7dcb4e26425dde2b1ca84 (diff) | |
download | gnome-control-center-efbad6eb505dad57776fa8e7b8b1c5209dc336af.tar.gz |
network: Port to GTK4
Boy this was hard.
To ease the pain of porting wireless-security to GTK4, add
a new WsFileChooserButton class that mimics the behavior of
a button that triggers a filechooser, as per the migration
guide suggests.
There were lots of GtkGrids, so the diff is particularly
horrendous. Sorry.
This needs serious testing before landing.
Diffstat (limited to 'shell')
-rw-r--r-- | shell/cc-panel-loader.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/shell/cc-panel-loader.c b/shell/cc-panel-loader.c index 31db92748..371ccac30 100644 --- a/shell/cc-panel-loader.c +++ b/shell/cc-panel-loader.c @@ -45,8 +45,8 @@ extern GType cc_keyboard_panel_get_type (void); extern GType cc_mouse_panel_get_type (void); extern GType cc_multitasking_panel_get_type (void); #ifdef BUILD_NETWORK -//extern GType cc_network_panel_get_type (void); -//extern GType cc_wifi_panel_get_type (void); +extern GType cc_network_panel_get_type (void); +extern GType cc_wifi_panel_get_type (void); #endif /* BUILD_NETWORK */ extern GType cc_notifications_panel_get_type (void); //extern GType cc_goa_panel_get_type (void); @@ -78,7 +78,7 @@ extern GType cc_diagnostics_panel_get_type (void); /* Static init functions */ extern void cc_diagnostics_panel_static_init_func (void); #ifdef BUILD_NETWORK -//extern void cc_wifi_panel_static_init_func (void); +extern void cc_wifi_panel_static_init_func (void); #endif /* BUILD_NETWORK */ #ifdef BUILD_WACOM extern void cc_wacom_panel_static_init_func (void); @@ -116,8 +116,8 @@ static CcPanelLoaderVtable default_panels[] = PANEL_TYPE("mouse", cc_mouse_panel_get_type, NULL), PANEL_TYPE("multitasking", cc_multitasking_panel_get_type, NULL), #ifdef BUILD_NETWORK - //PANEL_TYPE("network", cc_network_panel_get_type, NULL), - //PANEL_TYPE("wifi", cc_wifi_panel_get_type, cc_wifi_panel_static_init_func), + PANEL_TYPE("network", cc_network_panel_get_type, NULL), + PANEL_TYPE("wifi", cc_wifi_panel_get_type, cc_wifi_panel_static_init_func), #endif PANEL_TYPE("notifications", cc_notifications_panel_get_type, NULL), //PANEL_TYPE("online-accounts", cc_goa_panel_get_type, NULL), |