[Gtk-sharp-list] Glade# Pixmap Resource
Samuel Kaufman
emrysk@gmail.com
Fri, 18 Feb 2005 19:56:23 -0800
--=-76XgyyZQ9+EICosBnIt9
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable
Do you happen to know of other bindings or anything in libglade or Gtk+
that deal with embedded resources? Something I could look at as an
example of how similar functionality could be added to Glade#?
The most straightforward solution that comes to mind would be parsing
the XML and stripping out all GtkImages that reference filenames
identical to embedded resource filenames, and then having Glade# set the
pixbuf, later. That seems way too complex, though. There must be a
better way.
On Fri, 2005-02-18 at 15:57 -0200, Rafael Teixeira wrote:
> AFAIK, No.=20
>=20
> Normally is a one-liner to do things programatically, but I would love
> to have Glade# extended to deal with embedded resources.
>=20
>=20
> On Tue, 15 Feb 2005 22:56:12 +0000, Samuel Kaufman <emrysk@gmail.com> wro=
te:
> > 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 i=
t
> > to find this pixmap? Is there a clean way to do it without using code
> > to manually drop the pixmap onto the window?
> > [ snip ]
>=20
--=-76XgyyZQ9+EICosBnIt9
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)
iD8DBQBCFrjnv1wSpxmNRQkRAuw8AJ0f3+nm9ts2OYFCS/xGfY2ogm0B2gCguNhN
7o6Xxez72Bf/lIY7yOkeDP4=
=5uxv
-----END PGP SIGNATURE-----
--=-76XgyyZQ9+EICosBnIt9--