Hi,I was building the GTK+ sources about a few days ago (latest GIT checkout circa 2/24/2013, in which I built my tarballs using 'make dist' on Linux before I proceeded to build the resulting tarball on my Windows 7 system using Visual C++ 2008. I have noticed that the gtk-demo sources have been recently ported to make more use of GResources via gdk_pixbuf_new_from_resource(), gtk_image_new_from_resource() and gtk_builder_add_from_resource(), but somehow the files that was loaded via the use of demo_resources.c (compiled from demo.gresource.xml) failed to load as they could not be found, causing the demos to fail. By declaring a GError in setup_default_icon() for gdk_pixbuf_new_from_resource(), this is the message I received when I printed the GError->message to stderr:
--- Unable to read file: The resource at '/gtk-logo-old.png' does not exist **ERROR:..\..\..\demos\gtk-demo\main.c:867:setup_default_icon: assertion failed: (
pixbuf)This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information. ---I have also compiled the demos.gresource.xml file as a.gresources, and the attached a.resources.details is what I have when I ran "gresource details a.gresources", for references.
Interestingly, I was able to successfully run the GResources tests from GLib (under GIO), and the widget-factory demo, which also made use of GResources, so I am wondering whether GResource handling on Windows might be different from *NIX platforms in certain cases? Or I may have missed some points on this?
I have filed a bug regarding this, bug 694342 <https://bugzilla.gnome.org/show_bug.cgi?id=694342>, for references.
Any pointers or info are highly appreciated. Thank you, with blessings!
Attachment:
a.resources.details
Description: Text document