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

Back to archive index

ruby-****@sourc***** ruby-****@sourc*****
2012年 8月 15日 (水) 05:07:43 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 for this eventuality 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):
+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 for this eventuality 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 if it is to render certain column from model, it has to be made aware of that column with the pertinent data type):
 
  store = Gtk::TreeStore.new(String, TrueClass, Integer, FixNum, Float)
  treeview = Gtk::TreeView.new(store)




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