Toplevel gtk.Window in SlaveView

Alexander Tsamutali astsmtl at gmail.com
Wed Oct 3 09:18:40 BRT 2007


HI, all.

I found an issue with method "attach". Normally slave contains a set
of widgets and a reference to the "toplevel" widget. When you call
"attach" the slave's toplevel widget is added to the placeholder. In
this case you can later attach this slave again as many times as you
wish. But when the toplevel widget is instance of gtk.Window "attach"
uses get_toplevel().get_child() and adds everything, except toplevel
gtk.Window, to the placeholder. In this case you are losing the
reference to these widgets from the slave because
get_toplevel().get_child() doesn't work anymore and you cannot attach
this slave again.

Am i right that this is a bug? Is there any solution?

P. S. My salves use window as a toplevel widget because that's
required by glade.

-- 
Alexander Tsamutali


More information about the Kiwi mailing list