diff --git a/demos/gtk-demo/Makefile.am b/demos/gtk-demo/Makefile.am index afdda22d21..7e23da63f2 100644 --- a/demos/gtk-demo/Makefile.am +++ b/demos/gtk-demo/Makefile.am @@ -79,7 +79,6 @@ BUILT_SOURCES = demos.h demo_resources.c EXTRA_DIST += \ $(IMAGEFILES) \ - demo.ui \ demo.gresource.xml \ $(RESOURCES) \ org.gtk.Demo.gschema.xml @@ -113,6 +112,7 @@ demo_resources.c: demo.gresource.xml $(RESOURCES) $(AM_V_GEN) $(GLIB_COMPILE_RESOURCES) --target=$@ --sourcedir=$(srcdir) --generate-source $(srcdir)/demo.gresource.xml RESOURCES= application.ui \ + demo.ui \ menus.ui \ theming.ui \ gtk-logo-24.png \ diff --git a/demos/gtk-demo/builder.c b/demos/gtk-demo/builder.c index f0691af490..663fffd91e 100644 --- a/demos/gtk-demo/builder.c +++ b/demos/gtk-demo/builder.c @@ -38,14 +38,11 @@ do_builder (GtkWidget *do_widget) { static GtkWidget *window = NULL; GError *err = NULL; - gchar *filename; if (!window) { builder = gtk_builder_new (); - filename = demo_find_file ("demo.ui", NULL); - gtk_builder_add_from_file (builder, filename, &err); - g_free (filename); + gtk_builder_add_from_resource (builder, "/builder/demo.ui", &err); if (err) { g_error ("ERROR: %s\n", err->message); diff --git a/demos/gtk-demo/demo.gresource.xml b/demos/gtk-demo/demo.gresource.xml index ad24bb81a2..33c0962a62 100644 --- a/demos/gtk-demo/demo.gresource.xml +++ b/demos/gtk-demo/demo.gresource.xml @@ -12,6 +12,9 @@ cssview.css reset.css + + demo.ui + css_accordion.css