From 159a8c8ef57fe77e3fe97945de58050c4b9ce2b7 Mon Sep 17 00:00:00 2001 From: Will Thompson Date: Thu, 23 Feb 2023 16:00:42 +0000 Subject: Remove g_resources_register calls These are unnecessary: constructor support is available on all relevant platforms, so resources are automatically registered. --- gnome-initial-setup/pages/account/gis-account-page.c | 1 - gnome-initial-setup/pages/goa/gis-goa-page.c | 1 - gnome-initial-setup/pages/keyboard/gis-keyboard-page.c | 1 - gnome-initial-setup/pages/language/gis-language-page.c | 1 - gnome-initial-setup/pages/network/gis-network-page.c | 1 - .../pages/parental-controls/gis-parental-controls-page.c | 1 - gnome-initial-setup/pages/password/gis-password-page.c | 1 - gnome-initial-setup/pages/privacy/gis-privacy-page.c | 1 - gnome-initial-setup/pages/software/gis-software-page.c | 1 - gnome-initial-setup/pages/summary/gis-summary-page.c | 2 -- gnome-initial-setup/pages/timezone/gis-timezone-page.c | 2 -- gnome-initial-setup/pages/welcome/gis-welcome-page.c | 2 -- 12 files changed, 15 deletions(-) diff --git a/gnome-initial-setup/pages/account/gis-account-page.c b/gnome-initial-setup/pages/account/gis-account-page.c index 856d58b..3a8c4bd 100644 --- a/gnome-initial-setup/pages/account/gis-account-page.c +++ b/gnome-initial-setup/pages/account/gis-account-page.c @@ -303,7 +303,6 @@ gis_account_page_class_init (GisAccountPageClass *klass) static void gis_account_page_init (GisAccountPage *page) { - g_resources_register (account_get_resource ()); g_type_ensure (GIS_TYPE_ACCOUNT_PAGE_LOCAL); g_type_ensure (GIS_TYPE_ACCOUNT_PAGE_ENTERPRISE); diff --git a/gnome-initial-setup/pages/goa/gis-goa-page.c b/gnome-initial-setup/pages/goa/gis-goa-page.c index 3d8aa6f..3d05fcf 100644 --- a/gnome-initial-setup/pages/goa/gis-goa-page.c +++ b/gnome-initial-setup/pages/goa/gis-goa-page.c @@ -583,7 +583,6 @@ gis_goa_page_class_init (GisGoaPageClass *klass) static void gis_goa_page_init (GisGoaPage *page) { - g_resources_register (goa_get_resource ()); g_type_ensure (GIS_TYPE_PAGE_HEADER); gtk_widget_init_template (GTK_WIDGET (page)); diff --git a/gnome-initial-setup/pages/keyboard/gis-keyboard-page.c b/gnome-initial-setup/pages/keyboard/gis-keyboard-page.c index 3adfd66..8899527 100644 --- a/gnome-initial-setup/pages/keyboard/gis-keyboard-page.c +++ b/gnome-initial-setup/pages/keyboard/gis-keyboard-page.c @@ -525,7 +525,6 @@ gis_keyboard_page_class_init (GisKeyboardPageClass * klass) static void gis_keyboard_page_init (GisKeyboardPage *self) { - g_resources_register (keyboard_get_resource ()); g_type_ensure (GIS_TYPE_PAGE_HEADER); g_type_ensure (CC_TYPE_INPUT_CHOOSER); diff --git a/gnome-initial-setup/pages/language/gis-language-page.c b/gnome-initial-setup/pages/language/gis-language-page.c index f62b2ad..ce07205 100644 --- a/gnome-initial-setup/pages/language/gis-language-page.c +++ b/gnome-initial-setup/pages/language/gis-language-page.c @@ -296,7 +296,6 @@ gis_language_page_class_init (GisLanguagePageClass *klass) static void gis_language_page_init (GisLanguagePage *page) { - g_resources_register (language_get_resource ()); g_type_ensure (GIS_TYPE_WELCOME_WIDGET); g_type_ensure (CC_TYPE_LANGUAGE_CHOOSER); diff --git a/gnome-initial-setup/pages/network/gis-network-page.c b/gnome-initial-setup/pages/network/gis-network-page.c index 859288f..aac1fd0 100644 --- a/gnome-initial-setup/pages/network/gis-network-page.c +++ b/gnome-initial-setup/pages/network/gis-network-page.c @@ -813,7 +813,6 @@ gis_network_page_class_init (GisNetworkPageClass *klass) static void gis_network_page_init (GisNetworkPage *page) { - g_resources_register (network_get_resource ()); g_type_ensure (GIS_TYPE_PAGE_HEADER); gtk_widget_init_template (GTK_WIDGET (page)); diff --git a/gnome-initial-setup/pages/parental-controls/gis-parental-controls-page.c b/gnome-initial-setup/pages/parental-controls/gis-parental-controls-page.c index 736194d..4bb80f7 100644 --- a/gnome-initial-setup/pages/parental-controls/gis-parental-controls-page.c +++ b/gnome-initial-setup/pages/parental-controls/gis-parental-controls-page.c @@ -224,7 +224,6 @@ gis_parental_controls_page_class_init (GisParentalControlsPageClass *klass) static void gis_parental_controls_page_init (GisParentalControlsPage *page) { - g_resources_register (parental_controls_get_resource ()); /* Ensure types exist for widgets in the UI file. */ g_type_ensure (GIS_TYPE_PAGE_HEADER); diff --git a/gnome-initial-setup/pages/password/gis-password-page.c b/gnome-initial-setup/pages/password/gis-password-page.c index 13282b5..56cbff2 100644 --- a/gnome-initial-setup/pages/password/gis-password-page.c +++ b/gnome-initial-setup/pages/password/gis-password-page.c @@ -484,7 +484,6 @@ gis_password_page_class_init (GisPasswordPageClass *klass) static void gis_password_page_init (GisPasswordPage *page) { - g_resources_register (password_get_resource ()); g_type_ensure (GIS_TYPE_PAGE_HEADER); gis_add_style_from_resource ("/org/gnome/initial-setup/gis-password-page.css"); diff --git a/gnome-initial-setup/pages/privacy/gis-privacy-page.c b/gnome-initial-setup/pages/privacy/gis-privacy-page.c index 3632142..464d383 100644 --- a/gnome-initial-setup/pages/privacy/gis-privacy-page.c +++ b/gnome-initial-setup/pages/privacy/gis-privacy-page.c @@ -258,7 +258,6 @@ gis_privacy_page_class_init (GisPrivacyPageClass *klass) static void gis_privacy_page_init (GisPrivacyPage *page) { - g_resources_register (privacy_get_resource ()); g_type_ensure (GIS_TYPE_PAGE_HEADER); gtk_widget_init_template (GTK_WIDGET (page)); } diff --git a/gnome-initial-setup/pages/software/gis-software-page.c b/gnome-initial-setup/pages/software/gis-software-page.c index b68d143..16b00da 100644 --- a/gnome-initial-setup/pages/software/gis-software-page.c +++ b/gnome-initial-setup/pages/software/gis-software-page.c @@ -157,7 +157,6 @@ gis_software_page_class_init (GisSoftwarePageClass *klass) static void gis_software_page_init (GisSoftwarePage *page) { - g_resources_register (software_get_resource ()); g_type_ensure (GIS_TYPE_PAGE_HEADER); gtk_widget_init_template (GTK_WIDGET (page)); diff --git a/gnome-initial-setup/pages/summary/gis-summary-page.c b/gnome-initial-setup/pages/summary/gis-summary-page.c index b947455..0a8dcfd 100644 --- a/gnome-initial-setup/pages/summary/gis-summary-page.c +++ b/gnome-initial-setup/pages/summary/gis-summary-page.c @@ -284,8 +284,6 @@ gis_summary_page_class_init (GisSummaryPageClass *klass) static void gis_summary_page_init (GisSummaryPage *page) { - g_resources_register (summary_get_resource ()); - gtk_widget_init_template (GTK_WIDGET (page)); } diff --git a/gnome-initial-setup/pages/timezone/gis-timezone-page.c b/gnome-initial-setup/pages/timezone/gis-timezone-page.c index 2ca34d0..ccf7baa 100644 --- a/gnome-initial-setup/pages/timezone/gis-timezone-page.c +++ b/gnome-initial-setup/pages/timezone/gis-timezone-page.c @@ -520,8 +520,6 @@ gis_timezone_page_class_init (GisTimezonePageClass *klass) static void gis_timezone_page_init (GisTimezonePage *page) { - g_resources_register (timezone_get_resource ()); - g_resources_register (datetime_get_resource ()); g_type_ensure (CC_TYPE_TIMEZONE_MAP); g_type_ensure (GIS_TYPE_BUBBLE_WIDGET); g_type_ensure (GIS_TYPE_PAGE_HEADER); diff --git a/gnome-initial-setup/pages/welcome/gis-welcome-page.c b/gnome-initial-setup/pages/welcome/gis-welcome-page.c index 41b1170..1594e16 100644 --- a/gnome-initial-setup/pages/welcome/gis-welcome-page.c +++ b/gnome-initial-setup/pages/welcome/gis-welcome-page.c @@ -118,8 +118,6 @@ gis_welcome_page_class_init (GisWelcomePageClass *klass) static void gis_welcome_page_init (GisWelcomePage *page) { - g_resources_register (welcome_get_resource ()); - gtk_widget_init_template (GTK_WIDGET (page)); } -- cgit v1.2.1