Hi, I’ve been trying to upgrade my workplaces ruby version from 1.8.6 to
2.1, and one of our most important projects is done in Gtk2. I finally
have the gtk2 (2.2.5-x86-mingw32) installed properly in windows on ruby
2.1, but the code behavior is all wrong. I first thought it was
just some small api changes, but I think now its a serious bug.
I’ve made a small program to demonstrate.
require ‘gtk2’
window = Gtk::Window.new()
window.set_default_size(200, 200)
window.signal_connect(“destroy”) do
Gtk.main_quit
end
a = Gtk::VBox.new()
a.pack_start(Gtk::TextView.new())
a.pack_start(Gtk::Button.new())
a.pack_start(Gtk::TextView.new())
window.add(a)
window.show_all()
Gtk.main()
If I click on any of the TextViews or the button, the focus gets stuck
on that widget and I can’t click on any of the other widgets via mouse.
I have no idea why it would do that. If anybody happens to have a clue
on how to fix this I would really appreciate it! Otherwise I’ll have to
give up on the upgrade and run everything on ruby 1.8.6 until the end of
time…
Edit: Forgot to mention, I tried going back to the 2.1.0 gem and had
the same problem. Any further back and the gem’s don’t seem compatible
with ruby 2.1.