From: Detlef R. <det...@gm...> - 2014-11-18 20:52:46
|
Hi, the following example require 'gtk3-gi' ag = Gtk::AccelGroup.new ag.connect(64, 0, :visible){p 'hit'} gives the error message: > /home/det/.gem/ruby/2.1.0/gems/gobject-introspection-2.2.4/lib/gobject-introspection/loader.rb:306:in `validate_arguments': Gtk::AccelGroup#connect: wrong number of arguments (3 for 4) (ArgumentError) > from /home/det/.gem/ruby/2.1.0/gems/gtk3-gi-2.2.4/lib/gtk3/loader.rb:101:in `block in define_method' > from /home/det/.gem/ruby/2.1.0/gems/gtk3-gi-2.2.4/lib/gtk3/loader.rb:110:in `call' > from /home/det/.gem/ruby/2.1.0/gems/gtk3-gi-2.2.4/lib/gtk3/loader.rb:110:in `block in define_method' > from accel.rb:4:in `<main>' I think, that the given block is not recognized as the 4th argument, that is in C a closure. I've searched trough the sources, but did not found the point, where the gi data is scanned for closures. Cheers, detlef |