[ruby-gnome2-doc-cvs] [Ruby-GNOME2 Project Website] update - tut-treeview-model-reference

Back to archive index

ruby-****@sourc***** ruby-****@sourc*****
2005年 8月 5日 (金) 13:51:06 JST


-------------------------
REMOTE_ADDR = 15.211.169.100
REMOTE_HOST = 
REMOTE_USER = ruby-gnome2-hiki
        URL = /hiki.cgi?tut-treeview-model-reference
-------------------------
TITLE       = tut-treeview-model-reference -> Refering to Rows: Gtk::TreeIter, Gtk::TreePath, Gtk::TreeRowReference
-------------------------
@@ -42,4 +42,4 @@
 
 The code above asks the model to fill the iter structure to make it point to the first row in the list store. If there is a first row and the list store is not empty, the iter will be set, and Gtk::TreeModel#iter_first will return TRUE. If there is no first row, it will just return FALSE. If a first row exists, the while loop will be entered and we change some of the first row's data. Then we ask the model to make the given iter point to the next row, until there are no more rows, which is when Gtk::TreeIter#next! returns FALSE. Instead of traversing the list store we could also have used Gtk::TreeModel#each
 
- liststore.each { |model,path,iter| iter[0]= "Joe" }
\ No newline at end of file
+ liststore.each { |model,path,iter| iter[0]= "Joe" }





ruby-gnome2-cvs メーリングリストの案内
Back to archive index