ruby-****@sourc*****
ruby-****@sourc*****
2012年 8月 14日 (火) 04:15:35 JST
------------------------- REMOTE_ADDR = 184.145.90.35 REMOTE_HOST = URL = http://ruby-gnome2.sourceforge.jp/hiki.cgi?tut-treeview-renderer-attributes ------------------------- @@ -21,8 +21,8 @@ Note, that for setting a property to a property value you use a different syntax, namely: renderer = Gtk::CellRendererText.new - renderer.foreground = "#ff0000" # or, you could also use colour name ("red") instead. - renderer.text = "This is what may be displayed" + renderer.foreground = "#ff0000" # or, you could also use colour name ("red") instead. + renderer.text = "This is what may be displayed" # setting text attribute MANUALLY The ((*text*)) property above needs special attention, since this attribute is most likely associated with the model, and hence is automatically rendered by Gtk, provided you set the appropriate column number for text via Gtk::TreeViewColumn.new. You would set ((*text*)) manually only for virtual columns in tree view, or columns that need some intervention at run time.