[gnome-initial-setup] summary: Chain up in get_builder to make our life easier



commit f1d121909cd423916f1d63d095762b160c0cf03e
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Thu Jan 24 18:08:56 2013 -0500

    summary: Chain up in get_builder to make our life easier

 .../pages/summary/gis-summary-page.c               |    8 +-------
 1 files changed, 1 insertions(+), 7 deletions(-)
---
diff --git a/gnome-initial-setup/pages/summary/gis-summary-page.c b/gnome-initial-setup/pages/summary/gis-summary-page.c
index f60607e..5b671d1 100644
--- a/gnome-initial-setup/pages/summary/gis-summary-page.c
+++ b/gnome-initial-setup/pages/summary/gis-summary-page.c
@@ -250,7 +250,6 @@ gis_summary_page_get_builder (GisPage *page)
 
   char *filename = g_build_filename (UIDIR, "summary-distro.ui", NULL);
   GError *error = NULL;
-  const char *resource_path = "/ui/gis-" PAGE_ID "-page.ui";
 
   if (gtk_builder_add_from_file (builder, filename, &error))
     goto out;
@@ -260,12 +259,7 @@ gis_summary_page_get_builder (GisPage *page)
 
   g_clear_error (&error);
 
-  gtk_builder_add_from_resource (builder, resource_path, &error);
-
-  if (error != NULL) {
-    g_warning ("Error while loading %s: %s", resource_path, error->message);
-    exit (1);
-  }
+  builder = GIS_PAGE_CLASS (gis_summary_page_parent_class)->get_builder (page);
 
  out:
   g_free (filename);



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