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

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

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 Taylor
Genome Software LLC

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

Version: GnuPG v1.2.5 (GNU/Linux)