On Tue, 2007-07-31 at 12:55 +0300, Lauri Taimila wrote:
> I already mentioned this on the Clutter IRC-channel, but here it is
> again.
> 
> I'm having problems with the latest SVN python bindings and I think
> that there is a bug that removes objects from memory before they
> actually should be removed. I'm not sure is this the case, but it's my
> conclusion based on my limited knowledge of Clutter and C. 

mmh, it looks like a bug in the reference counting of the python
objects: when you remove an actor from a group, its reference count is
decreased, and since it should be 1 it gets finalised as well. in C, if
you want to keep it alive, you should reference it; python, as far as I
know, keeps a reference count of its own, so that the objects are
finalised when garbage collected.

python gobject bindings should use a sink function for "floating"
objects, that is clutter.Actor and clutter.Alpha. I just fixed them in
SVN and your example now should work.

the funny thing is: I did this for the perl bindings, which work the
same way as the python ones, but forgot to port the code over. :-)

thanks for spotting this!

ciao,
 Emmanuele.

-- 
Emmanuele Bassi, OpenedHand Ltd.
Unit R, Homesdale Business Centre
216-218 Homesdale Rd., Bromley - BR12QZ
http://www.o-hand.com

-- 
To unsubscribe send a mail to [EMAIL PROTECTED]

Reply via email to