[EMAIL PROTECTED] wrote:
Hi list,
I want to share a notebook and a statusbar in two gtk windows as this
components are same for the two windows.
The notebook will display lots of canvas, and i want to optimize the
memory use as there canvas won't be modify. That's why i decided to
create a shared notebook and a share statusbar.
I saw several times this error without succeeding in finding the cause.
I found it is not possible for a widget to be part of two windows due
to the test child->parent == NULL.
That is almost a logical contradiction. You could have the same model
data for two different widgets, but not the same widget on two places.
That would lead to situations like receiving a position event for the
widget, a drag'n drop action, a signal to display a context menu and
then... which instance has received it? wasn't there only one single
instance?.
At the end you need having two instances of the same widget that share
the same single model where they store their data and status information
and that keeps them both in sync. How you achieve this depends on your
needs. You can have something like two treeviews that share the same
treemodel, or one being a real widget and a different window that has a
clone pixmap of the "original" widget, and so on...
Good luck,
--
Pachi
_______________________________________________
pygtk mailing list [email protected]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/