ruby-****@sourc*****
ruby-****@sourc*****
2012年 8月 9日 (木) 08:34:01 JST
------------------------- REMOTE_ADDR = 184.145.90.35 REMOTE_HOST = URL = http://ruby-gnome2.sourceforge.jp/hiki.cgi?tut-treeview-model-reference ------------------------- @@ -29,7 +29,7 @@ model = treeview.model iter = model.get_iter(path="0") -Tree row references reveal the current path of a row with Gtk::TreeRowReference#.path. There is no direct way to get a tree iter from a tree row reference, you have to retrieve the tree row reference's path first and then convert that into a tree iter. +Tree row references reveal the current path of a row with Gtk::TreeRowReference#path. There is no direct way to get a tree iter from a tree row reference, you have to retrieve the tree row reference's path first and then convert that into a tree iter. As tree iters are only valid for a short time, they are usually allocated on the heap, as in the following example: