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

Zurück zum Archiv-Index

ruby-****@sourc***** ruby-****@sourc*****
2012年 8月 15日 (水) 05:10:19 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 if it is to render certain column from model, it has to be made aware of that column with the pertinent 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, which is accomplished by Gtk::TreeViewColumn.new):
 
  store = Gtk::TreeStore.new(String, TrueClass, Integer, FixNum, Float)
  treeview = Gtk::TreeView.new(store)




ruby-gnome2-cvs メーリングリストの案内
Zurück zum Archiv-Index