[Glade-users] Best practice for destroying windows?



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





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]