[ruby-gnome2-doc-cvs] [Ruby-GNOME2 Project Website] update - tut-gtk2-treev-parts

Back to archive index

ruby-****@sourc***** ruby-****@sourc*****
2012年 9月 21日 (金) 04:55:12 JST


-------------------------
REMOTE_ADDR = 184.145.80.187
REMOTE_HOST = 
        URL = http://ruby-gnome2.sourceforge.jp/hiki.cgi?tut-gtk2-treev-parts
-------------------------
@@ -330,7 +330,7 @@
  # integer and string.
  store = Gtk::ListStore.new(TrueClass, Integer, String)
 
-In our program, we invoke this constructor to create the list and at the same time define the data types for each column within a row, just before we enter the loop, by iterating through our array of values to append them to the list. Indeed the important feature in this process is the iterator, i.e. the Gtk::TreeIter object, which is manipulated as an index in our list, where the Gtk::ListStore#append does all the work for us and returns the iterator for each subsequently created empty row as it creates a new empty list entry (record or row) and points the iterator (index) to it. We then proceed to assign values fro our array of GroceryItem objects to individual columns with Gtk::TreeIter#[], or alternatively with Gtk::ListStore#set_value:
+In our program, we invoke this constructor to create the list and at the same time define the data types for each column within a row, just before we enter the loop, by iterating through our array of values to append them to the list. Indeed the important feature in this process is the iterator, i.e. the Gtk::TreeIter object, which is manipulated as an index in our list, where the Gtk::ListStore#append does all the work for us and returns the iterator for each subsequently created empty row as it creates a new empty list entry (record or row) and points the iterator (index) to it. We then proceed to assign values from our array of GroceryItem objects to individual columns with Gtk::TreeIter#[], or alternatively with Gtk::ListStore#set_value:
 
  store = Gtk::ListStore.new(TrueClass, Integer, String)
  




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