From: Detlef W. <det...@gm...> - 2016-11-11 19:31:25
|
Hi, I have some problems since the update of gtk from 3.20 to 3.22 with ruby gtk programs. I have checked out the current master of ruby gnome and installed it. All other gtk applications (non-ruby) don't have the described problems. First: ====== require 'gtk3' win = Gtk::Window.new pixbuf = GdkPixbuf::Pixbuf.new :path => 'img.png', :width => 64, :height => 64 img = Gtk::Image.new img.pixbuf = pixbuf #img = Gtk::Image.new :file => 'img.png' win.add img win.show_all Gtk.main If I set the image from a pixbuf while creation of the image or after it, like in the sample above, no image is shown. If I specify the same image directly like in the commented out line, the image is shown as expected. Second: ======= require 'gtk3' win = Gtk::Window.new win.signal_connect(:draw) do p win.window.class end win.show_all Gtk.main The output is: #<Class:0x00000001f5b9b8> but I belief that it should be: Gdk::Window And then I have the problem, that configure events in combination with Gtk::DrawingArea s are give not the right size of the area. But this is in a quite complex program and I first try to track it down. For me, it seams that the gtk API and ABI compatibility is brocken :-( Can someone confirm this bugs? Tanks, detlef |