ruby-****@sourc*****
ruby-****@sourc*****
2012年 10月 23日 (火) 01:56:41 JST
------------------------- REMOTE_ADDR = 184.145.49.94 REMOTE_HOST = URL = http://ruby-gnome2.sourceforge.jp/hiki.cgi?tut-gtk2-mnstbs-popup ------------------------- @@ -103,8 +103,11 @@ I also found it unnecessary to call Gtk::Menu#attach_to_widget(attach_widget){|attach_widgt, menu| ... } in this program example, as required by the Andrew Klause's book and the C GTK+ example there, which I translated to Ruby for us here. -{{image_right("dialog-warning.png")}} -Separators are extremely important when designing a menu structure, because they organize menu items into groups so that the user can easily find the appropriate item. However, currently this feature either is badly documented (use a MenuItem with no label). +=== Use MenuItem with no label as Separators in menus + +Separators are extremely important when designing a menu structure, because they organize menu items into groups so that the user can easily find the appropriate item. Currently a MenuItem with no label serves as a separator. + + === Pop-up Menu Callbacks