[ruby-gnome2-doc-cvs] [Ruby-GNOME2 Project Website] update - tut-gtk2-mnstbs-csti

Back to archive index

ruby-****@sourc***** ruby-****@sourc*****
2009年 2月 27日 (金) 09:26:37 JST


-------------------------
REMOTE_ADDR = 74.15.84.244
REMOTE_HOST = 
        URL = http://ruby-gnome2.sourceforge.jp/hiki.cgi?tut-gtk2-mnstbs-csti
-------------------------
@@ -19,8 +19,15 @@
 There are a few a slight problem with the way Gtk::IconFactory, Gtk::Toolbar and rendering of newly created stock items is implemented. The image here on the left is from Ruby GNOME2 (rel 2-0.17.0) implementation. It shows three problems. First is that Gtk::Toolbar does not display anything. It should display icons for the new stock items as well as their stock ids. The third problem is that Gtk::Toolbar does not display the labels which we explicitly set when we create tool button item. We can see that Gtk::IconFactory and the rest of associated classes and objects managed to store the image, since when we shrink the size of the window so that the arrow has to be used to see the items beyond the visible area, icons do appear. C GTK+ implementation, for which the image is here below on the right, exhibits very similar faulting behaviour, however it does display at least the stock ids, as well as the labels on the GtkToolbar widget.
 
 {{image_right("mnstbs-csi-c.png")}}
+{{br}}
+{{image_left("mnstbs-csi-rb2.png")}}
+However, I have just discovered that all is not so bad as first appeared, namely, if you set the following:
+{{br}}
+ toolbar.toolbar_style = Gtk::Toolbar::Style::ICONS
 
+as you can see the icons appear. Let us look at the code:
 {{br}}
+
 
 ((*iconfactory.rb*))
 




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