On Fri, May 22, 2009 at 12:01, Tomeu Vizoso <to...@sugarlabs.org> wrote:
> 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?

As one more data point, this is what seed does:

construction: http://git.gnome.org/cgit/seed/tree/libseed/seed-engine.c#n201
method invocation:
http://git.gnome.org/cgit/seed/tree/libseed/seed-engine.c#n473

Regards,

Tomeu

> 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
>
_______________________________________________
pygtk mailing list   pygtk@daa.com.au
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/

Reply via email to