[Glade-users] Best Practice for Glade.XML - open/close new window

Travis Staloch twostepted at yahoo.com
Mon Jun 12 23:57:27 EDT 2006


I have around 7 similar windows which are defined in a
.glade xml file.  My app shows these windows
consecutively as its back/next buttons are pressed. 
The reason I'm asking about this is that the app seems
slightly slow and has shown some funny behavior
between opening new windows.  Can anyone spot any
mistakes with this?

Each time I show a new window:
  gxml = new Glade.XML(sPATH_TO_GLADE_XML,
sWindowName, null);
  gxml.Autoconnect (this);
  wndCurrent =
(Gtk.Window)gxml.GetWidget(sWindowName);
  // ... set properties of wndCurrent ...

And when I'm done with the window:
  gxml.Dispose();
  wndCurrent.HideAll();
  wndCurrent.Destroy();
  wndCurrent.Dispose();

Thanks for any advice. 

Regards,

--Travis


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


More information about the Glade-users mailing list