[gnome-control-center/gbsneto/gtk4: 1/35] Disable all panels and tests




commit a5237b58b7fb083347bd6659a1eb7cedd44bf271
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Mon Oct 18 11:25:46 2021 -0300

    Disable all panels and tests
    
    We'll start the transition by disabling all panels and tests, so that
    we can go through them one by one, which should make the review process
    significantly less painful.

 meson.build             |   2 +-
 panels/meson.build      |  64 +++++++++++-----------
 shell/cc-panel-loader.c | 140 ++++++++++++++++++++++++------------------------
 3 files changed, 103 insertions(+), 103 deletions(-)
---
diff --git a/meson.build b/meson.build
index ec91bcc40..4a29208ad 100644
--- a/meson.build
+++ b/meson.build
@@ -285,7 +285,7 @@ subdir('shell')
 subdir('search-provider')
 
 if get_option('tests')
-  subdir('tests')
+#  subdir('tests')
 endif
 
 if get_option('documentation')
diff --git a/panels/meson.build b/panels/meson.build
index f603db919..beeb0587d 100644
--- a/panels/meson.build
+++ b/panels/meson.build
@@ -1,45 +1,45 @@
 subdir('common')
 
 panels = [
-  'applications',
-  'background',
-  'camera',
-  'color',
-  'datetime',
-  'default-apps',
-  'diagnostics',
-  'display',
-  'info-overview',
-  'keyboard',
-  'location',
-  'lock',
-  'microphone',
-  'mouse',
-  'multitasking',
-  'notifications',
-  'online-accounts',
-  'power',
-  'printers',
-  'region',
-  'removable-media',
-  'search',
-  'sharing',
-  'sound',
-  'universal-access',
-  'usage',
-  'user-accounts',
-  'wwan',
+#  'applications',
+#  'background',
+#  'camera',
+#  'color',
+#  'datetime',
+#  'default-apps',
+#  'diagnostics',
+#  'display',
+#  'info-overview',
+#  'keyboard',
+#  'location',
+#  'lock',
+#  'microphone',
+#  'mouse',
+#  'multitasking',
+#  'notifications',
+#  'online-accounts',
+#  'power',
+#  'printers',
+#  'region',
+#  'removable-media',
+#  'search',
+#  'sharing',
+#  'sound',
+#  'universal-access',
+#  'usage',
+#  'user-accounts',
+#  'wwan',
 ]
 
 if host_is_linux
-  panels += ['network']
+#  panels += ['network']
 endif
 
 if host_is_linux_not_s390
   panels += [
-    'bluetooth',
-    'thunderbolt',
-    'wacom'
+#    'bluetooth',
+#    'thunderbolt',
+#    'wacom'
   ]
 endif
 
diff --git a/shell/cc-panel-loader.c b/shell/cc-panel-loader.c
index 67f3f1b46..a6ead7e90 100644
--- a/shell/cc-panel-loader.c
+++ b/shell/cc-panel-loader.c
@@ -31,60 +31,60 @@
 #ifndef CC_PANEL_LOADER_NO_GTYPES
 
 /* Extension points */
-extern GType cc_applications_panel_get_type (void);
-extern GType cc_background_panel_get_type (void);
+//extern GType cc_applications_panel_get_type (void);
+//extern GType cc_background_panel_get_type (void);
 #ifdef BUILD_BLUETOOTH
-extern GType cc_bluetooth_panel_get_type (void);
+//extern GType cc_bluetooth_panel_get_type (void);
 #endif /* BUILD_BLUETOOTH */
-extern GType cc_color_panel_get_type (void);
-extern GType cc_date_time_panel_get_type (void);
-extern GType cc_default_apps_panel_get_type (void);
-extern GType cc_display_panel_get_type (void);
-extern GType cc_info_overview_panel_get_type (void);
-extern GType cc_keyboard_panel_get_type (void);
-extern GType cc_mouse_panel_get_type (void);
-extern GType cc_multitasking_panel_get_type (void);
+//extern GType cc_color_panel_get_type (void);
+//extern GType cc_date_time_panel_get_type (void);
+//extern GType cc_default_apps_panel_get_type (void);
+//extern GType cc_display_panel_get_type (void);
+//extern GType cc_info_overview_panel_get_type (void);
+//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);
-extern GType cc_power_panel_get_type (void);
-extern GType cc_printers_panel_get_type (void);
-extern GType cc_region_panel_get_type (void);
-extern GType cc_removable_media_panel_get_type (void);
-extern GType cc_search_panel_get_type (void);
-extern GType cc_sharing_panel_get_type (void);
-extern GType cc_sound_panel_get_type (void);
+//extern GType cc_notifications_panel_get_type (void);
+//extern GType cc_goa_panel_get_type (void);
+//extern GType cc_power_panel_get_type (void);
+//extern GType cc_printers_panel_get_type (void);
+//extern GType cc_region_panel_get_type (void);
+//extern GType cc_removable_media_panel_get_type (void);
+//extern GType cc_search_panel_get_type (void);
+//extern GType cc_sharing_panel_get_type (void);
+//extern GType cc_sound_panel_get_type (void);
 #ifdef BUILD_THUNDERBOLT
-extern GType cc_bolt_panel_get_type (void);
+//extern GType cc_bolt_panel_get_type (void);
 #endif /* BUILD_THUNDERBOLT */
-extern GType cc_ua_panel_get_type (void);
-extern GType cc_user_panel_get_type (void);
+//extern GType cc_ua_panel_get_type (void);
+//extern GType cc_user_panel_get_type (void);
 #ifdef BUILD_WACOM
-extern GType cc_wacom_panel_get_type (void);
+//extern GType cc_wacom_panel_get_type (void);
 #endif /* BUILD_WACOM */
 #ifdef BUILD_WWAN
-extern GType cc_wwan_panel_get_type (void);
+//extern GType cc_wwan_panel_get_type (void);
 #endif /* BUILD_WWAN */
-extern GType cc_location_panel_get_type (void);
-extern GType cc_camera_panel_get_type (void);
-extern GType cc_microphone_panel_get_type (void);
-extern GType cc_usage_panel_get_type (void);
-extern GType cc_lock_panel_get_type (void);
-extern GType cc_diagnostics_panel_get_type (void);
+//extern GType cc_location_panel_get_type (void);
+//extern GType cc_camera_panel_get_type (void);
+//extern GType cc_microphone_panel_get_type (void);
+//extern GType cc_usage_panel_get_type (void);
+//extern GType cc_lock_panel_get_type (void);
+//extern GType cc_diagnostics_panel_get_type (void);
 
 /* Static init functions */
-extern void cc_diagnostics_panel_static_init_func (void);
+//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);
+//extern void cc_wacom_panel_static_init_func (void);
 #endif /* BUILD_WACOM */
 #ifdef BUILD_WWAN
-extern void cc_wwan_panel_static_init_func (void);
+//extern void cc_wwan_panel_static_init_func (void);
 #endif /* BUILD_WWAN */
 
 #define PANEL_TYPE(name, get_type, init_func) { name, get_type, init_func }
@@ -97,48 +97,48 @@ extern void cc_wwan_panel_static_init_func (void);
 
 static CcPanelLoaderVtable default_panels[] =
 {
-  PANEL_TYPE("applications",     cc_applications_panel_get_type,         NULL),
-  PANEL_TYPE("background",       cc_background_panel_get_type,           NULL),
+  //PANEL_TYPE("applications",     cc_applications_panel_get_type,         NULL),
+  //PANEL_TYPE("background",       cc_background_panel_get_type,           NULL),
 #ifdef BUILD_BLUETOOTH
-  PANEL_TYPE("bluetooth",        cc_bluetooth_panel_get_type,            NULL),
+  //PANEL_TYPE("bluetooth",        cc_bluetooth_panel_get_type,            NULL),
 #endif
-  PANEL_TYPE("camera",           cc_camera_panel_get_type,               NULL),
-  PANEL_TYPE("color",            cc_color_panel_get_type,                NULL),
-  PANEL_TYPE("datetime",         cc_date_time_panel_get_type,            NULL),
-  PANEL_TYPE("default-apps",     cc_default_apps_panel_get_type,         NULL),
-  PANEL_TYPE("diagnostics",      cc_diagnostics_panel_get_type,          
cc_diagnostics_panel_static_init_func),
-  PANEL_TYPE("display",          cc_display_panel_get_type,              NULL),
-  PANEL_TYPE("info-overview",    cc_info_overview_panel_get_type,        NULL),
-  PANEL_TYPE("keyboard",         cc_keyboard_panel_get_type,             NULL),
-  PANEL_TYPE("location",         cc_location_panel_get_type,             NULL),
-  PANEL_TYPE("lock",             cc_lock_panel_get_type,                 NULL),
-  PANEL_TYPE("microphone",       cc_microphone_panel_get_type,           NULL),
-  PANEL_TYPE("mouse",            cc_mouse_panel_get_type,                NULL),
-  PANEL_TYPE("multitasking",     cc_multitasking_panel_get_type,         NULL),
+  //PANEL_TYPE("camera",           cc_camera_panel_get_type,               NULL),
+  //PANEL_TYPE("color",            cc_color_panel_get_type,                NULL),
+  //PANEL_TYPE("datetime",         cc_date_time_panel_get_type,            NULL),
+  //PANEL_TYPE("default-apps",     cc_default_apps_panel_get_type,         NULL),
+  //PANEL_TYPE("diagnostics",      cc_diagnostics_panel_get_type,          
cc_diagnostics_panel_static_init_func),
+  //PANEL_TYPE("display",          cc_display_panel_get_type,              NULL),
+  //PANEL_TYPE("info-overview",    cc_info_overview_panel_get_type,        NULL),
+  //PANEL_TYPE("keyboard",         cc_keyboard_panel_get_type,             NULL),
+  //PANEL_TYPE("location",         cc_location_panel_get_type,             NULL),
+  //PANEL_TYPE("lock",             cc_lock_panel_get_type,                 NULL),
+  //PANEL_TYPE("microphone",       cc_microphone_panel_get_type,           NULL),
+  //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),
-  PANEL_TYPE("power",            cc_power_panel_get_type,                NULL),
-  PANEL_TYPE("printers",         cc_printers_panel_get_type,             NULL),
-  PANEL_TYPE("region",           cc_region_panel_get_type,               NULL),
-  PANEL_TYPE("removable-media",  cc_removable_media_panel_get_type,      NULL),
-  PANEL_TYPE("search",           cc_search_panel_get_type,               NULL),
-  PANEL_TYPE("sharing",          cc_sharing_panel_get_type,              NULL),
-  PANEL_TYPE("sound",            cc_sound_panel_get_type,                NULL),
+  //PANEL_TYPE("notifications",    cc_notifications_panel_get_type,        NULL),
+  //PANEL_TYPE("online-accounts",  cc_goa_panel_get_type,                  NULL),
+  //PANEL_TYPE("power",            cc_power_panel_get_type,                NULL),
+  //PANEL_TYPE("printers",         cc_printers_panel_get_type,             NULL),
+  //PANEL_TYPE("region",           cc_region_panel_get_type,               NULL),
+  //PANEL_TYPE("removable-media",  cc_removable_media_panel_get_type,      NULL),
+  //PANEL_TYPE("search",           cc_search_panel_get_type,               NULL),
+  //PANEL_TYPE("sharing",          cc_sharing_panel_get_type,              NULL),
+  //PANEL_TYPE("sound",            cc_sound_panel_get_type,                NULL),
 #ifdef BUILD_THUNDERBOLT
-  PANEL_TYPE("thunderbolt",      cc_bolt_panel_get_type,                 NULL),
+  //PANEL_TYPE("thunderbolt",      cc_bolt_panel_get_type,                 NULL),
 #endif
-  PANEL_TYPE("universal-access", cc_ua_panel_get_type,                   NULL),
-  PANEL_TYPE("usage",            cc_usage_panel_get_type,                NULL),
-  PANEL_TYPE("user-accounts",    cc_user_panel_get_type,                 NULL),
+  //PANEL_TYPE("universal-access", cc_ua_panel_get_type,                   NULL),
+  //PANEL_TYPE("usage",            cc_usage_panel_get_type,                NULL),
+  //PANEL_TYPE("user-accounts",    cc_user_panel_get_type,                 NULL),
 #ifdef BUILD_WACOM
-  PANEL_TYPE("wacom",            cc_wacom_panel_get_type,                cc_wacom_panel_static_init_func),
+  //PANEL_TYPE("wacom",            cc_wacom_panel_get_type,                cc_wacom_panel_static_init_func),
 #endif
 #ifdef BUILD_WWAN
-  PANEL_TYPE("wwan",             cc_wwan_panel_get_type,                 cc_wwan_panel_static_init_func),
+  //PANEL_TYPE("wwan",             cc_wwan_panel_get_type,                 cc_wwan_panel_static_init_func),
 #endif
 };
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]