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

アーカイブの一覧に戻る

ruby-****@sourc***** ruby-****@sourc*****
2012年 8月 14日 (火) 02:47:14 JST


-------------------------
REMOTE_ADDR = 184.145.90.35
REMOTE_HOST = 
        URL = http://ruby-gnome2.sourceforge.jp/hiki.cgi?tut-treeview-renderer-attributes
-------------------------
@@ -14,7 +14,7 @@
 
 Do not be misled by the following code and also the Gtk API documentation that explains it:
 
- column   = Gtk::TreeViewColumn.new("Buy", renderer,  {:text => 3, :foreground => 3})
+ column   = Gtk::TreeViewColumn.new("Buy", renderer,  {:text => 3, :foreground => 4})
 
 Particularly misleading in the above code and in the API documentation is the part (if read inattentively) suggesting that the hash of attributes may be used to set the attributes to their respective values. That may have been an original Gtk GUI developer's goal but it never materialized. One may incorrectly conclude that in the above code we could set the foreground colour directly when creating the view column. This, however, is not the case, namely all attributes in the hash can only be assigned their respective column numbers in the tree view, which with the exception of :text attribute, is a rather ridiculous thing in most everyday situations.
 




ruby-gnome2-cvs メーリングリストの案内
アーカイブの一覧に戻る