[pygtk] making pygobject_register_sinkfunc a noop?

Tomeu Vizoso tomeu at sugarlabs.org
Fri May 22 18:01:31 WST 2009


Hi,

I'm working on pybank and have found a problem when removing the
floating reference after construction.

The current plan is to base pybank on pygobject, so pybank would
basically create at runtime the equivalent of the code generated for
the gtk, gstreamer, etc bindings.

I'm wondering now how can I make the equivalent of calling
pygobject_register_sinkfunc in pybank and by looking at the gjs code,
seems like we don't really need for each library bindings to register
their own sinkfuncs:

http://git.gnome.org/cgit/gjs/tree/gi/object.c#n709

Is Gjs correct and we can do something generically and drop
pygobject_register_sinkfunc?

You can track my work here:
http://git.sugarlabs.org/projects/pybank/repos/mainline
And learn more about pybank here: http://live.gnome.org/PyBank/

Thanks,

Tomeu


More information about the pygtk mailing list