ruby-****@sourc*****
ruby-****@sourc*****
2012年 8月 12日 (日) 05:39:07 JST
------------------------- REMOTE_ADDR = 184.145.90.35 REMOTE_HOST = URL = http://ruby-gnome2.sourceforge.jp/hiki.cgi?tut-treeview-model-reference ------------------------- @@ -25,9 +25,9 @@ Tree iters can easily be converted into tree paths using Gtk::TreeIter#path, and tree paths can easily be converted into tree iters using Gtk::TreeModel#get_iter. For example: - path = an_iter.path # where path : The Gtk::TreePath or a String representation of a Gtk::TreePath. + path = an_iter.path model = treeview.model - iter = model.get_iter(path="0") + iter = model.get_iter(path) # where path : The Gtk::TreePath or a String representation of a Gtk::TreePath. 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.