On Thu, Jul 23, 2009 at 6:32 PM, Axel Simon<axel.si...@ens.fr> wrote:
> Ok, then I have to dig more around old documentation to make sense of it.
> It's very odd if objects are created with a reference count of zero.

Maybe people back then were asked to always objRef the objects if they
planned to keep them around and the reference counter started at zero
to allow pointers to be passed to other functions without forcing one
to write the reference counting code when the user didn't plan to keep
a reference.

On the other hand, that doesn't explain the need for refSink to be
introduced. Anyway, I was just thinking out loud.

> Maybe
> there was a different floating reference before 2.10 (or refSink was present
> before 2.10).

Nope, refSink was introduced with 2.10. I think 2.8.6 is the latest
(stable) one prior to 2.10 and it doesn't have refSink.

> Which GLib version did you check?

GLib 2.6.4 and 2.8.6

> Thanks for the patience,

No problem. Thank *you* for taking the time to investigate this thing deeper.

Cheers,

Thiago Arrais

> Axel.

------------------------------------------------------------------------------
_______________________________________________
Gtk2hs-devel mailing list
Gtk2hs-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gtk2hs-devel

Reply via email to