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

Back to archive index

ruby-****@sourc***** ruby-****@sourc*****
2009年 2月 18日 (水) 11:37:37 JST


-------------------------
REMOTE_ADDR = 74.15.84.244
REMOTE_HOST = 
        URL = http://ruby-gnome2.sourceforge.jp/hiki.cgi?tut-gtk2-treev-pxbr
-------------------------
@@ -8,7 +8,7 @@
 You have already learnt almost everything necessary to add Gdk::Pixbuf images to the tree view in previous sections, and the following listing provides a simple example to guide you. There is no need to create a separate column header for pixbufs in most cases, hence this listing shows you how to include multiple renderers in one column. Pixbuf cell renderers are extremely useful in types of tree view implementations such as file system browsers.
 
 
-{{image_left("treev-trees-ok.png")}}
+{{image_left("treev-crs-01.png")}}
 As you can see there are no pixbuf objects on this image on the left. This is because of a problem in GTK+. Namely, currently  (as of Ruby 1.8.6 and Ruby-GNOME2 rel.: 2-0.17.0-rc1) {{image_right("dialog-warning.png")}}two important methods: Gtk::CellRendererPixbuf#set_attributes and Gtk::CellRendererPixbuf#set_attributes, do not work as expected. It looks that this is a combined C GTK+ as well as Ruby GTK+ problem. I have compiled the C example from Andrew Klause's book, and it exhibits exactly the same problems as my Ruby translation. You may check it out by clicking on ((<pixbuf-rdr.c|tut-gtk2-treev-treev-pxbr-cgtk-01>))
 
 {{br}}




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