[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:41:29 JST


-------------------------
REMOTE_ADDR = 184.145.90.35
REMOTE_HOST = 
        URL = http://ruby-gnome2.sourceforge.jp/hiki.cgi?tut-treeview-renderer-types
-------------------------
@@ -9,7 +9,8 @@
  treeview = Gtk::TreeView.new(list)
  # ...
  renderer = Gtk::CellRendererText.new
- col = Gtk::TreeViewColumn.new("Age", renderer, :text => 2)  # Note 3rd column in model is Integer
+ col = Gtk::TreeViewColumn.new("Age", renderer, :text => 2)  # Note 3rd column in model is Integer, however,
+                                                             # in view (renderer.text) is of type String
  # ...
  treeview.append_column(col)
 




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