[Glade-users] Best Practice for Glade.XML - open/close new window
Travis Staloch
twostepted at yahoo.com
Thu Jun 15 02:13:38 EDT 2006
Thanks alot Tristan.
After working on this tonight, I've been able to solve my problem by
1. Setting all my windows Visiblity = false in the glade designer.
2. Initializing the Glade.XML object like this (inits all widgets contained in the .glade file because second arg, root, is null):
gxml = new Glade.XML(sPATH_TO_GLADE_XML, null, null);
3. When I want to show a window, using:
wnd = (Gtk.Window)gxml.GetWidget(sWindowName);
gxml.Autoconnect(this);
wnd.Visible = true;
4. Hiding a window
wnd.Visible = false;
The app seems alot more responsive now and everything works!
Regards,
--Travis
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/glade-users/attachments/20060614/2636467d/attachment.html
More information about the Glade-users
mailing list