[ruby-gnome2-doc-cvs] [Ruby-GNOME2 Project Website] update - tut-treeview-renderer-types

Back to archive index

ruby-****@sourc***** ruby-****@sourc*****
2012年 8月 14日 (火) 07:32:53 JST


-------------------------
REMOTE_ADDR = 184.145.90.35
REMOTE_HOST = 
        URL = http://ruby-gnome2.sourceforge.jp/hiki.cgi?tut-treeview-renderer-types
-------------------------
@@ -3,7 +3,7 @@
 
 It has been said before that, when using attributes to connect data from the model to a cell renderer property, the data in the model column specified in Gtk::TreeView#add_attributes must always be of the same type as the data type that the property requires.
 
-This is usually true, but there is an exception: if you add a text cell renderer's "text" property to a model column, the model column does not need to be a ((*String*)), it can also be one of several other classes, e.g. ((*TrueClass, Integer, FixNum,*)) or ((*Float.*)) The text cell renderer will automatically display the values of these types correctly in the tree view. For example:
+This is usually true, but there is an exception: if you add a text cell renderer's "text" property to a model column, the model column does not need to be a ((*String,*)) it can also be one of several other classes, e.g. ((*TrueClass, Integer, FixNum,*)) or ((*Float.*)) The text cell renderer will automatically display the values of these types correctly in the tree view. For example:
 
  list = Gtk::ListStore.new(String, TrueClass, Integer, FixNum, Float)
  treeview = Gtk::TreeView.new(list)




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