[Nitro] Og name clashes with Gtk2
rob at motionpath.com
Sat Jan 14 07:24:53 EST 2006
I noticed some discussion on IRC about changing the method name for
properties. I am against this as some of our libraries do use the
property method and i think it is well named. A better solution would be
to change the manageable check to be more intelligent. Perhaps objects
should export a method can_be_og_managed? or similar.
n Fri, 2006-01-13 at 12:03 +0200, George Moschovitis wrote:
> Hmm, interesting (and annoying) bug report :( Will have to think for
> the best solution to this.
> BTW, please note that properties is not a feauture of Og. You can use
> objects with properties on non-db projects.
> On 1/12/06, vseguip at gmail.com <vseguip at gmail.com> wrote:
> > Hello, I was just testing the Og library and I think it's great.
> > However, I wanted it to integrate with a Gtk2 GUI and found that there
> > seems to be a name clash between ruby GTK2 bindings and Og.
> > The ruby bindings of gtk2 define the method "property" and
> > "properties" for all descendants of Glib::Object. Apparently, this
> > leads Og to think of them as manageable (which they are not) and
> > crashes the program, probably due to strange accesses to Glib.
> > There is a workaround this to only require gtk2 after setting up the
> > connection but it will still fail since I actually want to manage GLib
> > objects, and then "properties" clashes with the ruby -gtk2 definition
> > of properties.
> > Is there an easy workaround to this problem? If not, what would it
> > take to rename the og default method lookup to something else (e.g.
> > og_properties instead of properties, etc)?
> > Thanks in advance for your time and help,
> > V. Seguí
> > P.S.: I'm posting this from another machine but if needed I could
> > supply a simple program to illustrate the problem.
> > _______________________________________________
> > Nitro-general mailing list
> > Nitro-general at rubyforge.org
> > http://rubyforge.org/mailman/listinfo/nitro-general
> Nitro-general mailing list
> Nitro-general at rubyforge.org
More information about the Nitro-general