ruby-****@sourc*****
ruby-****@sourc*****
2012年 9月 27日 (木) 08:29:43 JST
------------------------- REMOTE_ADDR = 184.145.80.187 REMOTE_HOST = URL = http://ruby-gnome2.sourceforge.jp/hiki.cgi?tut-gtk2-treev-rr ------------------------- @@ -10,7 +10,7 @@ {{image_right("treev-rr-01.png")}} -Instances of Gtk::TreePath class are a very convenient objects for referring rows within a tree model, because it can be easily represented as a human-readable string. It can also be represented as an array of integers. For instance, if you are presented with the string 3:7:5, you would start at the fourth element (recall that indexing begins at zero) on the root level. You would next proceed to the eighth child of the second root element. The row in question is the sixth child of the root element on the third level. +Instances of Gtk::TreePath class are a very convenient objects for referring rows within a tree model, because it can be easily represented as a human-readable string. It can also be represented as an array of integers. For instance, if you are presented with the string 3:7:5, you would start at the fourth element (recall that indexing begins at zero) on the first root level. You would next proceed to the eighth child of the second root element. The row in question is the sixth child of the root element on the third level. You can get a new Gtk::TreePath from a path in string form using Gtk::TreePath.new(path_in_string_notation). But if you already have a Gtk::TreePath object you can convert it into its string notation with Gtk::TreePath#to_str.