ruby-****@sourc*****
ruby-****@sourc*****
2012年 11月 7日 (水) 06:43:24 JST
------------------------- REMOTE_ADDR = 184.145.95.170 REMOTE_HOST = URL = http://ruby-gnome2.sourceforge.jp/hiki.cgi?tut-gtk2-mnstbs-mnub ------------------------- @@ -200,6 +200,12 @@ langmenu.popup(nil, nil, 0, Gdk::Event::CURRENT_TIME) end +:Accelerator Group + + The API tells us that the Gtk::AccelGroup represents a group of keyboard accelerators, typically attached to a top-level Gtk::Window with Gtk::Window#add_accel_group. It is important that you do not forget to attach the Gtk::AccelGroup object to your top level window, if you wish that the users of your application will be able to use accelerator keys. In our example program we do the following: + + window.add_accel_group(group) +