Re: destroying widgets and Gtk2::GladeXML



James said:
muppet said:
there's no magic to re-create dead widgets.  all the widgets are 
created by glade_xml_new.  thus, when you call ->destroy on it, it's 
gone... so, eh, don't do that.  ;-)

So yeah, it seems that calling destroy is a bad thing, because you get
all your widgets at the beginning.

Rather than destroying your window, why not use hide_all() instead? then
just show_all() the next time you need it.

Gavin.

-- 
Gavin Brown
e: gavin brown uk com
w: http://jodrell.net/
PGP/GPG key ID: 891D8FCA

Attachment: signature.asc
Description: This is a digitally signed message part



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