ruby-****@sourc*****
ruby-****@sourc*****
2012年 8月 16日 (木) 04:09:10 JST
------------------------- REMOTE_ADDR = 70.49.49.99 REMOTE_HOST = URL = http://ruby-gnome2.sourceforge.jp/hiki.cgi?tut-gtk2-treev-parts ------------------------- @@ -243,8 +243,8 @@ renderer = Gtk::CellRendererText.new column = Gtk::TreeViewColumn.new("Title", renderer, - :text => TEXT_COLUMN, # COLUMN NUMBERS - NOT attribute values !! - :foreground => COLOR_COLUMN) # COLUMN NUMBERS - NOT attribute values !! + :text => TEXT_COLUMN, # COLUMN NUMBERS - NOT attribute values !!! + :foreground => COLOR_COLUMN) # COLUMN NUMBERS - NOT attribute values !!! To fully comprehend the above Gtk::TreeViewColumn.new API fragment just above the questionable code example, it would be beneficial if you understand that the API fragment alludes to how to implement the same functionality as that of the ((*new*)) method, manually - with four simpler methods. So let us rewrite the following code (the shorter fragment) from our example program with a bit longer one, to reflect what was just said: