From aaab99bb4df814fa93d88d1e90445b61e78de0fc Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Wed, 30 Jan 2013 23:05:12 +0100 Subject: [PATCH] gtk-demo: Don't use subfolders for resources This confuses the notebook that is displaying them. --- demos/gtk-demo/application.c | 8 ++++---- demos/gtk-demo/demo.gresource.xml | 4 +--- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/demos/gtk-demo/application.c b/demos/gtk-demo/application.c index 6889e61280..412fc01164 100644 --- a/demos/gtk-demo/application.c +++ b/demos/gtk-demo/application.c @@ -113,7 +113,7 @@ activate_about (GSimpleAction *action, NULL }; - pixbuf = gdk_pixbuf_new_from_resource ("/application/logos/gtk-logo-48.png", NULL); + pixbuf = gdk_pixbuf_new_from_resource ("/application/gtk-logo-48.png", NULL); gtk_show_about_dialog (GTK_WINDOW (window), "program-name", "GTK+ Code Demos", @@ -177,7 +177,7 @@ register_stock_icons (void) factory = gtk_icon_factory_new (); gtk_icon_factory_add_default (factory); - pixbuf = gdk_pixbuf_new_from_resource ("/application/logos/gtk-logo-24.png", NULL); + pixbuf = gdk_pixbuf_new_from_resource ("/application/gtk-logo-24.png", NULL); icon_set = gtk_icon_set_new_from_pixbuf (pixbuf); gtk_icon_factory_add (factory, "demo-gtk-logo", icon_set); @@ -295,7 +295,7 @@ startup (GApplication *app) GMenuModel *menubar; builder = gtk_builder_new (); - gtk_builder_add_from_resource (builder, "/application/ui/menus.ui", NULL); + gtk_builder_add_from_resource (builder, "/application/menus.ui", NULL); appmenu = (GMenuModel *)gtk_builder_get_object (builder, "appmenu"); menubar = (GMenuModel *)gtk_builder_get_object (builder, "menubar"); @@ -331,7 +331,7 @@ activate (GApplication *app) window); builder = gtk_builder_new (); - gtk_builder_add_from_resource (builder, "/application/ui/application.ui", NULL); + gtk_builder_add_from_resource (builder, "/application/application.ui", NULL); grid = (GtkWidget *)gtk_builder_get_object (builder, "grid"); contents = (GtkWidget *)gtk_builder_get_object (builder, "contents"); diff --git a/demos/gtk-demo/demo.gresource.xml b/demos/gtk-demo/demo.gresource.xml index 55f27e71dc..2d524e0478 100644 --- a/demos/gtk-demo/demo.gresource.xml +++ b/demos/gtk-demo/demo.gresource.xml @@ -1,10 +1,8 @@ - + gtk-logo-24.png gtk-logo-48.png - - application.ui menus.ui