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

Back to archive index

ruby-****@sourc***** ruby-****@sourc*****
2012年 8月 13日 (月) 07:06:59 JST


-------------------------
REMOTE_ADDR = 184.145.90.35
REMOTE_HOST = 
        URL = http://ruby-gnome2.sourceforge.jp/hiki.cgi?tut-treeview-renderer-renderer
-------------------------
@@ -8,7 +8,7 @@
 * Gtk::CellRendererToggle displays a boolean value in form of a check box or as a radio button.
 * Gtk::CellEditable is a special cell that implements editable cells (ie. Gtk::Entry or Gtk::SpinButton in a treeview)
 
-We said that model and view have to be connected  (i.e. Gtk::TreeView has to be associated with Gtk::TreeStore or Gtk::ListStore). How the tree data types (strings, numbers and boolean) are handled in Gtk is best seen in the code which indirectly points out to the Gtk::CellRendererText's ability to separate the forementioned data types. Following is the example code (note that a renderer is not even shown here, though it has to be made aware of a column with certain data type):
+We said that model and view have to be connected  (i.e. Gtk::TreeView has to be associated with Gtk::TreeStore or Gtk::ListStore). How the tree data types (strings, numbers and boolean) are handled in Gtk is best seen in the code which indirectly points out to the Gtk::CellRendererText's ability to separate the forementioned data types. Following is the example code (note that a renderer is not even shown here, though it has to be made aware of a column with a certain data type):
 
  store = Gtk::TreeStore.new(String, Integer, TrueClass)
  treeview = Gtk::TreeView.new(store)




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