[gnome-initial-setup] location: Register resources later



commit 8f1e2b9abb28a7f085bf823949f2c9ccaaa66975
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Thu Jan 24 23:51:51 2013 -0500

    location: Register resources later
    
    This is a linking hack, but if it actually did something, the
    constructed handler there would be too late.

 .../pages/location/gis-location-page.c             |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/gnome-initial-setup/pages/location/gis-location-page.c b/gnome-initial-setup/pages/location/gis-location-page.c
index 967ac97..0e700d5 100644
--- a/gnome-initial-setup/pages/location/gis-location-page.c
+++ b/gnome-initial-setup/pages/location/gis-location-page.c
@@ -273,8 +273,6 @@ gis_location_page_constructed (GObject *object)
 
   G_OBJECT_CLASS (gis_location_page_parent_class)->constructed (object);
 
-  g_resources_register (datetime_get_resource ());
-
   gtk_container_add (GTK_CONTAINER (page), WID ("location-page"));
 
   frame = WID("location-map-frame");
@@ -374,6 +372,7 @@ static void
 gis_location_page_init (GisLocationPage *page)
 {
   g_resources_register (location_get_resource ());
+  g_resources_register (datetime_get_resource ());
   page->priv = GET_PRIVATE (page);
 }
 



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