Hi,
I just updated Ruby-GNOME2 to the latest CVS version, which includes
the fixes to GRClosure, but now I get the warning
“warning: GRClosure invoking callback: already destroyed”
on some menuitem options, and the code does not get invoked.
I think this is getting kind of complex…
I know I don’t program in a conventional way, but before the GRClosure
changes I was able to use Ruby-GNOME2 with my custom library…
I am reverting back my Ruby-GNOME2 to the version of CVS
when I removed the GRClosure fixes, because it works for me, even
though it might come with the memory leaks.
Meanwhile, here is a description of some of what my library does:
- it abstracts away the repetitive code of common GUI programs;
- it uses Gtk.main and Gtk.main_quit to create custom dialog windows;
- it uses Ruby Proc/blocks/closures for code all the time;
- it uses very dynamic code, with plugins/modules that can be launched
from anywhere on the path;
And now with the latest Ruby-GNOME2 from CVS I can’t use the MenuItems
with it, because GRClosure has problems with it. The problem is:
- I don’t know how far the problems go;
- my library uses other libraries of mine to form the base for my
programs; - I don’t intend to open source all of this yet, because I’m hard at
work
creating more programs/functionality, and I don’t have time to make all
of this open source yet;
If ever Joel Spolsky was right, it was about the “Leaky Abstractions”.
hehe
Thanks guys. I don’t have the time to create examples right now. I will
revert
to a good version of Ruby-GNOME2 for me for now…
Cheers,
Joao