ruby-****@sourc*****
ruby-****@sourc*****
2009年 2月 12日 (木) 02:29:12 JST
------------------------- REMOTE_ADDR = 74.15.84.244 REMOTE_HOST = URL = http://ruby-gnome2.sourceforge.jp/hiki.cgi?tut-gtk2-treev-parts ------------------------- @@ -147,7 +147,7 @@ === Creating the Tree View -Creating the tree view with Gtk::TreeView.new(model = nil) is the easiest part. Next order of business is to set up the tree view columns. In our example program we do this in our own helper method ((*setup_tree_view(treeview)*)), which deserves some explanations. Our tree view contains three columns and each has to be set up. All three columns will display text, hence we will use the Gtk::CellRendererText cell renderer for all of them. +Creating the tree view with Gtk::TreeView.new(model = nil) is the easiest part. Next order of business is to set up the tree view columns. In our example program we do this in our own helper method ((*setup_tree_view(treeview),*)) which deserves some explanations. Our tree view contains three columns and each has to be set up. All three columns will display text, hence we will use the Gtk::CellRendererText cell renderer for all of them. renderer = Gtk::CellRendererText.new