[Gtk-sharp-list] Gtk Widgets from glade files?

Pablo Fischer pablo@pablo.com.mx
Thu, 22 Jul 2004 16:15:13 -0500


--=-LVtAnJ2sXTctJwgZwKKm
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

Hi!

I'd like to know (and if possible: 'how') if I can create some
Gtk.Widgets, but copying the 'layout' from a Glade File.

For example, I'd like to create some Widgets that will be inherited from
Gtk.HBox but loading the HBox from a Glade file (a Hbox that I have in a
.glade).

Something like this:

class MyWidget : Gtk.HBox {

	public HBox () : Base ()
	{

		[Glade.Widget] Gtk.HBox box;
		glade =3D new Glade.XML (null, "file.glade", "box");
		this =3D (Gtk.HBox)box;
	}
}

Can I do something similar?.

Thanks!
Pablo
--=20
Pablo Fischer Sandoval (pablo [arroba/at] pablo.com.mx)
Fingerprint:  5973 0F10 543F 54AE 1E41  EC81 0840 A10A 74A4 E5C0
http://www.pablo.com.mx=20
http://www.debianmexico.org

--=-LVtAnJ2sXTctJwgZwKKm
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.4 (GNU/Linux)

iD8DBQBBAC5hCEChCnSk5cARAqXGAJ9EqZZur/EEojejFI2kqRBN/E/KEgCgj8P1
8H8FB4ZbnnJu5hGVIc+Ax7c=
=EdNj
-----END PGP SIGNATURE-----

--=-LVtAnJ2sXTctJwgZwKKm--