From: Andrey Demidov on 8 Nov 2009 11:03 I think I have found the answer: user_renderer = Gtk::CellRendererPixbuf.new col = Gtk::TreeViewColumn.new col.title = "pic" col.pack_start(user_renderer, false) pixbuf = Gdk::Pixbuf.new('/home/demas/settings/awn_icons/emacs.png') user_renderer.set_pixbuf(pixbuf) -- Posted via http://www.ruby-forum.com/.
From: Andrey Demidov on 8 Nov 2009 11:07 Or better: iter = @store.append iter[0] = twi.message() iter[1] = Gdk::Pixbuf.new('/home/demas/settings/awn_icons/emacs.png') .... user_renderer = Gtk::CellRendererPixbuf.new col = Gtk::TreeViewColumn.new col.title = "pic" col.pack_start(user_renderer, false) col.add_attribute(user_renderer, 'pixbuf', 1) -- Posted via http://www.ruby-forum.com/.
|
Pages: 1 Prev: Unable to work on pop up in selenium-rc Next: bones 3.0.0 |