I don't seem to be able to get ruby-libglade 1.1 to work. When I run the
sample script, a GTK+ window pops up for a *very* short time before the
script terminates with this stack trace
test.rb:6:in `method': undefined method `destroy' for class `Test'
(NameError)
from test.rb:6:in `initialize'
from test.rb:6:in `call'
from (eval):7:in `doConnect'
from test.rb:6:in `initialize'
from test.rb:6:in `new'
from test.rb:6:in `initialize'
from test.rb:19:in `new'
from test.rb:19
Here's line 6 from test.rb:
@glade = GladeXML.new("test.glade") {|handler| method(handler)}
When I define destroy in Test, the stack trace changes to this:
(eval):11:in `doConnect': undefined method `signal_connect' for false
(NameError)
from test.rb:6:in `initialize'
from test.rb:6:in `new'
from test.rb:6:in `initialize'
from test.rb:22:in `new'
from test.rb:22
lglade.so is installed in /usr/local/lib/site_ruby/1.6/i486-linux/ on my
Debian/Linux machine.
GTK/Gnome otherwise work on my system and the samples from libgtk-ruby,
the Debian package made from Hiroshi Igarashi's Ruby/GTK, do work as
well.
Any hints what I may be doing wrong?
Michael
--
Michael Schuerig
mailto:schuerig / acm.org
http://www.schuerig.de/michael/