[Glade-users] Best practice for destroying windows?
Jay Camp
jayc@CLEMSON.EDU
Wed, 09 Jun 2004 21:36:12 -0400
What is the best way to destroy a window? Hiding (which seems to be the
default?) would work, but then I have to write a function to reset all
the settings back to their defaults.
I have tried doing gtk_widget_destroy() when catching the delete_event
signal, but the next time I try to instantiate the window, it complains
that it isn't a valid widget.
Am I missing something here?
Also, is there a way to have more than one copy of a window? From what
I understand, glade_xml_get_widget() always returns the same widget.
Thank you!
Jay