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

Back to archive index

ruby-****@sourc***** ruby-****@sourc*****
2012年 9月 20日 (木) 10:11:12 JST


-------------------------
REMOTE_ADDR = 184.145.80.187
REMOTE_HOST = 
        URL = http://ruby-gnome2.sourceforge.jp/hiki.cgi?tut-gtk2-treev-parts
-------------------------
@@ -311,7 +311,7 @@
  iter[QUANTITY] = list[i].quantity
  iter[PRODUCT]  = list[i].product
 
-However, unlike the previous code example where we set "text" and "foreground" attributes, this code does two things it sets both the columns in the model and also the columns in the view. 
+However, unlike the previous code example where we set "text" and "foreground" attributes, this code using Gtk::TreeIter's rather than direct access to renders's properties (attributes) does two things it sets both the columns in the model and also the columns in the view. 
 
 As you see there are many issues to consider when dealing with tree model and tree view. It is not easy to learn all the aspects of this mechanism up front before you start to experiment with the programs. The best place to start investigating a program like our "liststore.rb" is the place where the tree view is initialized. In our example program this is the ((*setup_tree_view*)) method. In it, we are defining three individual single columns, where we have a single name/value pair for each attribute. Finally we have to add (append) our newly defined column to the tree view. Copy the program to your system and start playing with it. The above discussions should provide you with plenty of material to try different alternatives. 
 




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