[Gtk-sharp-list] A newbie question about using Glade#

Brad Taylor brad@getcoded.net
Wed, 09 Mar 2005 22:22:29 -0800


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

Hi Mike,

> Ok, this is probably just a stupid newbie question since I just got=20
> started playing with Glade, but here it goes. Could someone tell me if=20
> this is a bad approach for using Glade. I created a Glade project and=20
> put multiple windows in the same project. Only one of them isn't a modal=20
> dialog box now, but they are all in the same project. Will having all of=20
> those in the same .glade file affect my ability to create a controller=20
> object for each of them that implements the functionality for them? The=20
> reason I ask is that I am a little bit confused about how Glade.XML=20
> defines what is a "root element." Should I put each dialog in a separate=20
> .glade file?

No, theres no particular reason that you *have* to put all the
dialogs/windows in the same glade file; separating them out has its
advantages only in maintainability and readability.

Glade's "root element" is any Dialog or Window specified in the glade
file.  Someone correct me if I'm wrong, but you can connect only one
glade root element to any given class by using the Glade.XML.Autoconnect
method, or you can optionally index the Glade.XML array to get widgets.

Hope that helps.

-Brad

--=20
Brad Taylor
Genome Software LLC
http://www.getcoded.net

--=-ZN6zx5aVZjtSfRFzoCtO
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part

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

iD8DBQBCL+elWZT8MXyJ2AURAj8KAJoD0z335HxfBQ3w1V6HUUWk9cy4UQCeJJfd
NB3nOFduHFFkMo0KrXmPxxw=
=cRYp
-----END PGP SIGNATURE-----

--=-ZN6zx5aVZjtSfRFzoCtO--