[ruby-gnome2-doc-cvs] [Ruby-GNOME2 Project Website] update - Gtk::MenuShell

Back to archive index

ruby-****@sourc***** ruby-****@sourc*****
2005年 8月 29日 (月) 05:30:15 JST


-------------------------
REMOTE_ADDR = 83.78.8.17
REMOTE_HOST = 
REMOTE_USER = ruby-gnome2-hiki
        URL = /hiki.cgi?Gtk%3A%3AMenuShell
-------------------------
@@ -38,8 +38,18 @@
 --- activate_item
     Activates the menu item within the menu shell.
     * menu_item: The Gtk::MenuItem to activate. 
-    * force_deactivate: If true, force the deactivation of the menu shell after the menu item is activated.  
+    * force_deactivate: If true, force the deactivation of the menu shell after the menu item is activated.
 
+--- take_focus
+    Returns true if the menu shell will take the keyboard focus on popup. ((*Since 2.8*))
+--- take_focus=(take_focus)
+    If take_focus is true (the default) the menu shell will take the keyboard focus so that it will receive all keyboard events which is needed to enable keyboard navigation in menus. Setting take_focus to false is useful only for special applications like virtual keyboard implementations which should not take keyboard focus. The take_focus state of a menu or menu bar is automatically propagated to submenus whenever a submenu is popped up, so you don't have to worry about recursively setting it for your entire menu hierarchy. Only when programmatically picking a submenu and popping it up manually, the take-focus property of the submenu needs to be set explicitely. Note that setting it to false has side-effects: if the focus is in some other app, it keeps the focus and keynav in the menu doesn't work. Consequently, keynav on the menu will only work if the focus is on some toplevel owned by the onscreen keyboard. To avoid confusing the user, menus with take_focus set to false should not display mnemonics or accelerators, since it cannot be guaranteed that they will work. See also Gdk#Gdk.keyboard_grab. ((*Since 2.8*))
+    * take_focus: true if the menu shell should take the keyboard focus on popup.
+    * returns: take_focus
+--- set_take_focus(take_focus)
+    Same as Gtk::MenuShell#take_focus=(take_focus). ((*Since 2.8*))
+    * returns: self
+
 == Constants
 === GtkMenuDirectionType
 --- DIR_PARENT
@@ -50,6 +60,21 @@
     To the next menu item.
 --- DIR_PREV
     To the previous menu item.
+
+== Properties
+
+--- take-focus: true or false (Read/Write)
+    A boolean that determines whether the menu and its submenus grab the keyboard focus. See Gtk::MenuShell#take_focus= and Gtk::MenuShell#take_focus. ((*Since 2.8*))
 
 == Signals
 --- activate-current: self, force_hide





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