ruby-****@sourc*****
ruby-****@sourc*****
2009年 2月 10日 (火) 04:32:14 JST
------------------------- REMOTE_ADDR = 74.15.84.244 REMOTE_HOST = URL = http://ruby-gnome2.sourceforge.jp/hiki.cgi?tut-gtk2-treev-parts ------------------------- @@ -164,10 +164,9 @@ When defining a tree view column we need to provide the text for the header, the renderer to be used on the elements (rows) of this column, and any number of attribute name/value pairs in a hash, where the name represents the attribute name and the value represents the column number. In our example we are defining a three individual single columns, so we have a single name/value pair for each attribute. Finally we have to add (append) our newly defined column to the tree view. -Following is the pertinent API documentation and an example found there, - {{image_right("dialog-warning.png")}} +Following is the pertinent API documentation and an example found there, which I believe is either lacking a vital part of setup, is incorrect or there is a bug in current Ruby implementation of Gtk::TreeViewColumn.new. (It looks as if the hash was never meant to define multiple columns.) --- Gtk::TreeViewColumn.new(title = nil, cell_renderer = nil, attributes = nil)