[Gtk-sharp-list] glade and monoresgen

tapia tapia@eitig.com
Thu, 19 Aug 2004 18:07:39 +0200


--=-UCeIL1sdgEkoyQFPtHuN
Content-Type: text/plain; charset=ISO-8859-15
Content-Transfer-Encoding: quoted-printable

El jue, 19-08-2004 a las 12:36, +1000, Bryan Buchanan escribi=F3:
> Hi,
>=20
> Can anyone tell me how to turn a Glade XML file into a resource so it
> can be included in an EXE file ?

You must compile it as a resource:

mcs -resource:your_file.glade etc, etc, etc

and in your code you load it this way:

Glade.XML gxml =3D new Glade.XML(null,"your_file.glade","window1",null);

The first "null" is for loading the .glade from the current assembly
(the .exe). If you have loaded the .glade in another assembly file, the
first parameter should be a System.Reflection.Assembly object pointing
to that assembly.

Enjoy glade# :-)

C.

--=-UCeIL1sdgEkoyQFPtHuN
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: Esta parte del mensaje =?ISO-8859-1?Q?est=E1?= firmada
	digitalmente

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)

iD8DBQBBJNBLUB+wbKFFlkARAsdyAKCG/cFGnBSYlO072gliO8PlRfV2LwCdGuj+
QUe1q2xjyJCy4pAO3ZWOixo=
=Lwv6
-----END PGP SIGNATURE-----

--=-UCeIL1sdgEkoyQFPtHuN--