From: Detlef R. <det...@gm...> - 2015-10-04 13:35:12
|
On 22.09.2015 08:55, Kouhei Sutou wrote: > > If your program that uses Ruby/GTK3 doesn't work with 3.x, > please report to us. It must be a Ruby/GTK3 bug. We'll fix > the bug. Hi, image = Gtk::Image.new :stock => Gtk::Stock::CLOSE, :size => :small_toolbar does not work, because :small_toolbar is an unknown enum to Gtk::IconSize you have to call it with image = Gtk::Image.new :stock => Gtk::Stock::CLOSE, :size => :"small-toolbar" what is valid ruby, but ugly :-/ Note the dash as opposed to the underscore. For :large_toolbar it is the same. The other enums from https://developer.gnome.org/gtk3/stable/gtk3-Themeable-Stock-Images.html#GTK-ICON-SIZE-MENU:CAPS work like expected. Cheers, detlef |