summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWill Thompson <wjt@endlessos.org>2023-02-23 15:55:32 +0000
committerWill Thompson <wjt@endlessos.org>2023-02-23 15:55:32 +0000
commit2be6c7c17f8685ecc51ae1b6f27cb2e595a9027a (patch)
treea7020cd736497b0655afc6041106ec908ebebdae
parentcca265558f6ab1553ba19dfce741e32a76e31dbd (diff)
downloadgnome-initial-setup-2be6c7c17f8685ecc51ae1b6f27cb2e595a9027a.tar.gz
goa: Use gis_add_style_from_resource()
The astute may notice that this should be in the class_init.
-rw-r--r--gnome-initial-setup/pages/goa/gis-goa-page.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/gnome-initial-setup/pages/goa/gis-goa-page.c b/gnome-initial-setup/pages/goa/gis-goa-page.c
index b934825..3d8aa6f 100644
--- a/gnome-initial-setup/pages/goa/gis-goa-page.c
+++ b/gnome-initial-setup/pages/goa/gis-goa-page.c
@@ -583,18 +583,12 @@ gis_goa_page_class_init (GisGoaPageClass *klass)
static void
gis_goa_page_init (GisGoaPage *page)
{
- g_autoptr(GtkCssProvider) provider = NULL;
-
g_resources_register (goa_get_resource ());
g_type_ensure (GIS_TYPE_PAGE_HEADER);
gtk_widget_init_template (GTK_WIDGET (page));
- provider = gtk_css_provider_new ();
- gtk_css_provider_load_from_resource (provider, "/org/gnome/initial-setup/gis-goa-page.css");
- gtk_style_context_add_provider_for_display (gdk_display_get_default (),
- GTK_STYLE_PROVIDER (provider),
- GTK_STYLE_PROVIDER_PRIORITY_APPLICATION);
+ gis_add_style_from_resource ("/org/gnome/initial-setup/gis-goa-page.css");
}
GisPage *