ruby-****@sourc*****
ruby-****@sourc*****
2012年 11月 7日 (水) 03:46:21 JST
------------------------- REMOTE_ADDR = 184.145.95.170 REMOTE_HOST = URL = http://ruby-gnome2.sourceforge.jp/hiki.cgi?tut-gtk2-mnstbs-popup ------------------------- @@ -355,7 +355,7 @@ We have not sufficiently acquainted ourselves with the Gtk::Menu widgets to fully understand the significance of implementing accelerator path in a context of a menu. (If you wish to jump ahead, you can check it out by jumping to section 9.5.1 entitled '((<Keyboard Accelerators And Their Relationships With Menus And Other Widgets|tut-gtk2-mnstbs-mnub#Keyboard Accelerators And Their Relationships With Menus And Other Widgets>))'.) Nevertheless, it is worthwhile mentioning the following conclusion, from that section: - :Using Accelerator Path In Menus (from section 9.5.1) + :Using Accelerator Path In Menus (from section 9.5.2) Unfortunately building accelerator path with Gtk::AccelMap.add_entry does not bring anything valuable to the menu designs. Creating 'accel-path' and adding it to the Gtk::AccelGroup seems redundant and incompletely implemented in Gtk. In particular mi.accel_path = "my-acc-p/xyz" has no effect, and fails to display the accelerator key on the menu item! The only thing that works is that callback is called when accelerator key is pressed.