WebKit::WebInspector signal "inspect-web-view" doesn't work
mhanne opened this issue · comments
when connecting the "inspect-web-view" signal to display the inspector, it raises the following error:
require 'ffi-gtk3' GirFFI.setup :WebKit, '3.0' Gtk.init win = Gtk::Window.new :toplevel wv = WebKit::WebView.new win.add(wv) win.show_all wv.open('http://www.google.com/') p wv.inspector GObject.signal_connect(wv.inspector, "inspect-web-view") {|*a| p a }
.../gir_ffi-0.3.1/lib/ffi-gobject/helper.rb:10:in `initialize': Invalid return type (WebKit::WebView) (TypeError) from .../gir_ffi-0.3.1/lib/ffi-gobject/helper.rb:10:in `initialize' from .../gir_ffi-0.3.1/lib/ffi-gobject/helper.rb:10:in `new' from .../gir_ffi-0.3.1/lib/ffi-gobject/helper.rb:10:in `signal_callback' from .../gir_ffi-0.3.1/lib/ffi-gobject.rb:71:in `signal_connect' from test.rb:13:in `'
maybe another problem related to passing objects into callbacks?
This is fixed in gir_ffi 0.3.2.