ruby-****@sourc*****
ruby-****@sourc*****
2012年 9月 19日 (水) 07:37:40 JST
------------------------- REMOTE_ADDR = 184.145.80.187 REMOTE_HOST = URL = http://ruby-gnome2.sourceforge.jp/hiki.cgi?tut-gtk2-treev-trees ------------------------- @@ -666,10 +666,14 @@ end # PECULIARITY: You can only add/set attributes after they were packed - # column.add_attribute(pixb_renderer, :pixbuf, ICON) + + # You can use either add_... or set_... attribute/s method; the difference + # is in number of atributes you need to set a single one or many. + #column.add_attribute(pixb_renderer, :pixbuf, ICON) column.set_attributes(pixb_renderer, :pixbuf => ICON) - # column.add_attribute(renderer, :text, PRODUCT) - column.set_attributes(renderer, :text => PRODUCT) + column.add_attribute(renderer, :text, PRODUCT) + #column.set_attributes(renderer, :text => PRODUCT) + treeview.append_column(column) end def get_pixbuf_if_file_exists(file)