ruby-****@sourc*****
ruby-****@sourc*****
2012年 8月 24日 (金) 10:13:24 JST
------------------------- REMOTE_ADDR = 70.49.49.99 REMOTE_HOST = URL = http://ruby-gnome2.sourceforge.jp/hiki.cgi?tut-gtk2-treev-rr ------------------------- @@ -65,6 +65,18 @@ Gtk::TreeStore#insert(parent, position), Gtk::TreeStore#insert(parent, position, values), Gtk::TreeStore#insert_before(parent, sibling), Gtk::TreeStore#insert_after(parent, sibling), Gtk::TreeStore#prepend(parent), Gtk::TreeStore#append(parent), Gtk::TreeStore#swap(a, b), Gtk::TreeStore#move_before(iter, position), Gtk::TreeStore#move_after(iter, position) and Gtk::TreeStore#each. +But in Gtk::TreeIter we can find the method Gtk::TreeIter#next!: + + def traverse_list_store (liststore) + # get first row in list store + return unless iter = liststore.iter_first + begin + # ... do something with that row using the iter ... + end while iter.next! + end + + + === Tree Row References