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

Back to archive index

ruby-****@sourc***** ruby-****@sourc*****
2012年 8月 20日 (月) 04:19:19 JST


-------------------------
REMOTE_ADDR = 70.49.49.99
REMOTE_HOST = 
        URL = http://ruby-gnome2.sourceforge.jp/hiki.cgi?tut-gtk2-treev-trees
-------------------------
@@ -123,11 +123,11 @@
     ((*model-view-controller*)) (MVC) design is a design method where the information and the way it is rendered are separated, which is similar to the relationship between Gtk::TreeView and Gtk::TreeBuffer. 
 
 
-((*Tree stores*)) are initialized with Gtk::ListStore.new.
+((*Tree stores*)) are initialized with Gtk::TreeStore.new.
 
  # Create a new tree model with three columns, as Boolean,
  # integer and string.
- store = Gtk::ListStore.new(TrueClass, Integer, String)
+ store = Gtk::TreeStore.new(TrueClass, Integer, String)
 
 However the most important difference is in how iterators and parent and child columns are handled. The first change that became an important feature in the ((*store*)) data initialization process was a new attribute called "product_type" in the GroceryItem class. This attribute decides whether a data item (a row, a record, or a tuple) is a product_category designated as the parent column in our data structure, or a grocery product which in our data structure is a child column of the product_category.
 




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