ruby-****@sourc*****
ruby-****@sourc*****
2012年 9月 28日 (金) 04:19:51 JST
------------------------- REMOTE_ADDR = 184.145.80.187 REMOTE_HOST = URL = http://ruby-gnome2.sourceforge.jp/hiki.cgi?tut-gtk2-treev-rr ------------------------- @@ -155,8 +155,10 @@ Converting a path to the coresponding iterator is obvious: path_string = "2:0:3:6" - iter = treeview.model.get_iter(Gtk::TreePath.new(path_string)) + iter = treeview.model.get_iter(path_string) + # or using iter object would also work: + iter = treeview.model.get_iter(Gtk::TreePath.new(path_string))