PHP-GTK Manual
This manual is provided as a courtesy. It is not an official source. Please check gtk.php.net for updated information.
Widget used for item in menus.
GtkObject `-- GtkWidget `-- GtkContainer `-- GtkBin `-- GtkItem `-- GtkMenuItem
GtkCheckMenuItem, GtkTearoffMenuItem
A GtkMenuItem is a container widget that can be packed into a GtkMenu or GtkMenuBar, containing a GtkAccelLabel and capable of being associated with a submenu.
GtkMenuItem ([string label ]); -- Creates a menu item.
set_submenu() Sets a GtkMenu as submenu. remove_submenu() Removes a pre-existing submenu. set_placement() Toggles placement of submenu relative to parent. configure() Toggles indicators. select() Emits the "select" signal. deselect() Emits the "deselect" signal. activate() Emits the "activate" signal. right_justify() Sets item to the right of a GtkMenuBar.
"activate" Emitted when menu item is chosen. "activate-item" Fired when activate_item() is called.