ruby-****@sourc*****
ruby-****@sourc*****
2012年 10月 7日 (日) 02:33:49 JST
------------------------- REMOTE_ADDR = 184.145.80.187 REMOTE_HOST = URL = http://ruby-gnome2.sourceforge.jp/hiki.cgi?tut-gtk2-treev-pxbr ------------------------- @@ -92,10 +92,13 @@ # integer, string and additional String for the Gdk::Pixbuf. store = Gtk::TreeStore.new(TrueClass, Integer, String, String) - # NOTE: it would be more appropriate, to use Gdk::Pixbuf instead of - # String, for the image item here: + # NOTE: If we used image files we would need to convert them to + # Gdk::Pixbuf objects and it would be more appropriate, + # to use Gdk::Pixbuf instead of String, for the image item + # here (see [8.2.4] for the correct handling of pixbufs). + # IMPORTANT - the following would not work here: + # # store = Gtk::TreeStore.new(TrueClass, Integer, String, Gdk::Pixbuf) - # Avoid creation of iterators on every iterration, since they # need to provide state information for all iterations. Hence: