[ruby-gnome2-doc-cvs] [Ruby-GNOME2 Project Website] update - tut-gtk2-treev-parts

Back to archive index

ruby-****@sourc***** ruby-****@sourc*****
2012年 8月 17日 (金) 06:59:29 JST


-------------------------
REMOTE_ADDR = 70.49.49.99
REMOTE_HOST = 
        URL = http://ruby-gnome2.sourceforge.jp/hiki.cgi?tut-gtk2-treev-parts
-------------------------
@@ -293,14 +293,14 @@
 :Shorter:
     These two lines are identical to the five below:
      renderer = Gtk::CellRendererText.new
-     column = Gtk::TreeViewColumn.new("Buy", renderer, "text" => BUY_IT)
+     column = Gtk::TreeViewColumn.new("Buy", renderer, :text => BUY_IT)
 :Longer:
     The following is equivalent to the above:
      renderer = Gtk::CellRendererText.new
      column = Gtk::TreeViewColumn.new
      column.title = "Buy"
      column.pack_start(renderer, false)
-     column.set_attributes("text" => BUY_IT)
+     column.set_attributes(:text => BUY_IT)
 
 
 Note how renderer is packed into the column. Following is the API for this line:




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