GtkMenuItem
the widget used for item in menus
The #GtkMenuItem widget and the derived widgets are the only valid
childs for menus. Their function is to correctly handle highlighting,
alignment, events and submenus.
As it derives from #GtkBin it can hold any valid child widget, altough
only a few are really useful.
#GtkBin
for how to handle the child.
#GtkItem
is the abstract class for all sorts of items.
#GtkMenuShell
is always the parent of #GtkMenuItem.
Creates a new #GtkMenuItem.
@Returns: the newly created #GtkMenuItem
Creates a new #GtkMenuItem whose child is a simple #GtlLabel.
@label: the text for the label
@Returns: the newly created #GtkMenuItem
Sets the widget submenu, or changes it.
@menu_item: the menu item widget
@submenu: the submenu
Removes the widget's submenu.
@menu_item: the menu item widget
Specifies the placement of the submenu around the menu item. The placement
is usually #GTK_LEFT_RIGHT for menu items in a popup menu and
#GTK_TOP_BOTTOM in menu bars.
This function is useless in usual applications.
@menu_item: the menu item
@placement: the submenu placement
Sets whether the menu item should show a submenu indicator, which is a right
arrow.
@menu_item: the menu item
@show_toggle_indicator: unused
@show_submenu_indicator: whether to show the arrow or not
Emits the "select" signal on the given item. Behaves exactly like
#gtk_item_select.
@menu_item: the menu item
Emits the "deselect" signal on the given item. Behaves exactly like
#gtk_item_deselect.
@menu_item: the menu item
Emits the "activate" signal on the given item
@menu_item: the menu item
@menu_item:
@requisition:
@menu_item:
@allocation:
Sets the menu item to be right-justified. Only useful for menu bars.
@menu_item: the menu item
Emitted when the item is activated.
@menuitem: the object which received the signal.
Emitted when the item is activated, but also if the menu item has a
submenu. For normal applications, the relevant signal is "activate".
@menuitem: the object which received the signal.
@menuitem: the object which received the signal.
@arg1:
@menuitem: the object which received the signal.
@arg1: