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.
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.
@menuitem: the object which received the signal.
@menuitem: the object which received the signal.
@arg1:
@menuitem: the object which received the signal.
@arg1:
Creates a new #GtkMenuItem.
@void:
@Returns: the newly created #GtkMenuItem
Creates a new #GtkMenuItem whose child is a #GtkLabel.
@label: the text for the label
@Returns: the newly created #GtkMenuItem
@label:
@Returns:
@menu_item:
@right_justified:
@menu_item:
@Returns:
@menu_item:
@Returns:
@menu_item:
@label:
@menu_item:
@Returns:
@menu_item:
@setting:
@menu_item:
@submenu:
@menu_item:
@Returns:
@menu_item:
@accel_path:
@menu_item:
@Returns:
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
Emits the "toggle_size_request" signal on the given item.
@menu_item: the menu item
@requisition: the requisition to use as signal data.
Emits the "toggle_size_allocate" signal on the given item.
@menu_item: the menu item.
@allocation: the allocation to use as signal data.