Here are two patches to use toggle references to manage
gobjects instead of trying to walk the hierarchy of
containers to discover them all. I think this could be
more efficient and robust and it makes it easier to
implement wrappers for new toolkits. This is similar to
how gjs works as far as I can tell.
Could someone try the patches with your applications and/or
sample programs in Ruby-GNOME2. We need to confirm that
those patches don’t crash your applications and leak memory.
(We also need to confirm efficiency?)
Patches cannot be applyed as they are since a lot of paths were
It seems that glib2/ext/glib2/rbgobj_object.c was also modified since
I have some warning :
patching file glib2/ext/glib2/rbgobj_object.c
Hunk #1 succeeded at 23 with fuzz 1.
Hunk #2 succeeded at 38 (offset -1 lines).
Hunk #3 succeeded at 110 (offset -5 lines).
Hunk #4 succeeded at 197 with fuzz 2 (offset -11 lines).
Hunk #5 succeeded at 803 (offset -36 lines).
Neverless I try the patched files. It seems to works but I just run a
application and quits.