ruby-****@sourc*****
ruby-****@sourc*****
2012年 9月 19日 (水) 07:53:16 JST
------------------------- REMOTE_ADDR = 184.145.80.187 REMOTE_HOST = URL = http://ruby-gnome2.sourceforge.jp/hiki.cgi?tut-gtk2-treev-trees ------------------------- @@ -730,7 +730,7 @@ column = Gtk::TreeViewColumn.new("Product", renderer, 'text' => PRODUCT) -You could simply pack the "pixb_renderer" into it, after initialization in which the specified renderer is also set to take the first first position in the left side of the in the cell (note that packing order can not alter this positional arrangement). We chose the other option, namely, to position the image before the text. This is why we have to manually build both renderers (one for the image and the other for text) and then pack them into a column in order we like! +You could simply pack the "pixb_renderer" into it, after initialization in which the specified renderer is also set to take the first position in the left side of the in the cell (note that packing order can not alter this positional arrangement). We chose the other option, namely, to position the image before the text. This is why we have to manually build both renderers (one for the image and the other for text) and then pack them into a column in order we like! Yet another wrinkle in our column building process is handling the situations when image is not available. We chose to complain with an annoying ERROR image. This is done with the stock item as follows: