[Gtk-sharp-list] Glade# Pixmap Resource
Tue, 15 Feb 2005 22:56:12 +0000
My project has a PNG embedded as a resource in the executable assembly.
I'm trying to use that PNG on a window in a Glade# project, where
gui.glade is also a resource in the assembly. It doesn't look like
Glade.XML is managing to find the the PNG on it's own. How can I get it
to find this pixmap? Is there a clean way to do it without using code
to manually drop the pixmap onto the window?
I get the following output.
(<unknown>:10500): GLib-CRITICAL **: g_path_get_dirname: assertion
`file_name !=3D NULL' failed
(<unknown>:10500): GdkPixbuf-CRITICAL **: gdk_pixbuf_new_from_file:
assertion `filename !=3D NULL' failed
Unhandled Exception: System.NullReferenceException: A null value was
found where an object instance was required.
in (unmanaged) (wrapper managed-to-native)
in <0x00004> (wrapper managed-to-native)
in <0x00133> Glade.XML:.ctor
in [0x00012] (at /home/emrys/Projects/Gust/MainWindow.cs:54)
in [0x00045] (at /home/emrys/Projects/Gust/Program.cs:39)
in [0x00001] (at /home/emrys/Projects/Gust/Program.cs:28)
free(): invalid pointer 0x8319000!
Thanks in advance.
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)
-----END PGP SIGNATURE-----