[gnome-initial-setup/ensure-GisLocationEntry] timezone: Load GisLocationEntry type before page template




commit 8486fda8ed6232aa086855bebb3bfac5f33285f5
Author: Will Thompson <wjt endlessos org>
Date:   Wed Feb 2 22:11:18 2022 +0000

    timezone: Load GisLocationEntry type before page template
    
    Without this, constructing the timezone page fails and everything goes
    south.
    
    > (gnome-initial-setup:2071): Gtk-CRITICAL **: 18:06:35.097: Error
    > building template class 'GisTimezonePage' for an instance of type
    > 'GisTimezonePage': .:3:1233 Invalid object type 'GisLocationEntry'
    
    Fixes: a7dfea2 "timezone: Reintroduce GisLocationEntry"
    Part-of: <https://gitlab.gnome.org/GNOME/gnome-initial-setup/-/merge_requests/138>

 gnome-initial-setup/pages/timezone/gis-timezone-page.c | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/gnome-initial-setup/pages/timezone/gis-timezone-page.c 
b/gnome-initial-setup/pages/timezone/gis-timezone-page.c
index c4a5b5de..5db54133 100644
--- a/gnome-initial-setup/pages/timezone/gis-timezone-page.c
+++ b/gnome-initial-setup/pages/timezone/gis-timezone-page.c
@@ -522,6 +522,7 @@ gis_timezone_page_init (GisTimezonePage *page)
   g_type_ensure (CC_TYPE_TIMEZONE_MAP);
   g_type_ensure (GIS_TYPE_BUBBLE_WIDGET);
   g_type_ensure (GIS_TYPE_PAGE_HEADER);
+  g_type_ensure (GIS_TYPE_LOCATION_ENTRY);
 
   gtk_widget_init_template (GTK_WIDGET (page));
 }


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