diff options
author | Georges Basile Stavracas Neto <georges.stavracas@gmail.com> | 2018-04-08 21:40:28 -0300 |
---|---|---|
committer | Georges Basile Stavracas Neto <georges.stavracas@gmail.com> | 2018-05-29 16:09:51 -0300 |
commit | 4151af5ea2d475b4e6ac8194523fc0c929d33039 (patch) | |
tree | b9c57c90b353d426bb9bbd920aa03dd4ac101ae9 /shell | |
parent | 10cf920fef3cab239bfd1bf5fc952d2121686cf0 (diff) | |
download | gnome-control-center-4151af5ea2d475b4e6ac8194523fc0c929d33039.tar.gz |
wifi: Hide when no Wi-Fi adapter is available
It's WIP.
Diffstat (limited to 'shell')
-rw-r--r-- | shell/cc-panel-loader.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/shell/cc-panel-loader.c b/shell/cc-panel-loader.c index b64ad034a..3beba0bfd 100644 --- a/shell/cc-panel-loader.c +++ b/shell/cc-panel-loader.c @@ -64,6 +64,11 @@ extern GType cc_user_panel_get_type (void); extern GType cc_wacom_panel_get_type (void); #endif /* BUILD_WACOM */ +/* Static init functions */ +#ifdef BUILD_NETWORK +extern void cc_wifi_panel_static_init_func (void); +#endif /* BUILD_NETWORK */ + #define PANEL_TYPE(name, get_type, init_func) { name, get_type, init_func } #else /* CC_PANEL_LOADER_NO_GTYPES */ @@ -93,7 +98,7 @@ static struct { PANEL_TYPE("mouse", cc_mouse_panel_get_type, NULL), #ifdef BUILD_NETWORK PANEL_TYPE("network", cc_network_panel_get_type, NULL), - PANEL_TYPE("wifi", cc_wifi_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), |