[pygtk] refs and reparent ...
MOULET Xavier FTRD/DMR/ISS
xavier.moulet@rd.francetelecom.fr
Mon, 17 Jul 2000 20:11:28 +0200
I have a problem with pygtk (great works which gets more and more attention
!)(which it deserves)
i have two treeitems in a tree.
I connect those iteme to signal select, unselect, get_target_getdata and
drag_source_givedata, and declare them as drag_source and drag_target (i
don't remember the signals but the idea is here).
i would like to go from :
-A
-B
to
-A
+ B.
originally, they display and drags right, but when i try to reparent the
second item to a subtree of the first item, or try to do
itemB["parent"].remove(item),(to create a new B as a subtree of A) then the
application segfaults.
>From C gtk programs' sources, people usually ref() the object and then
reparent it.
I haven't seen any ref() method to gtkobject (and i assume this is right as
python takes care of ref counting), but if i try to disconnect all signals
and try to unset dragsources & all, this doen't work either.
I'll try to have a simple program that segfaults unconditionnally to be more
explicit.
I have gtk 1.2.8 and pygtk 0.6.6
Are this kind of problem known issues, resolved with the extensionclass way
in 0.7 ?
thanks in advance for any useful input, I'll try to be more explicit, but
this really drives me crazy !
xavier