gtkMenuItemNew(show = TRUE)
gtkMenuItemNewWithLabel(label, show = TRUE)
gtkMenuItemNewWithMnemonic(label, show = TRUE)
gtkMenuItemSetRightJustified(object, right.justified)
gtkMenuItemGetRightJustified(object)
gtkMenuItemGetLabel(object)
gtkMenuItemSetLabel(object, label)
gtkMenuItemGetUseUnderline(object)
gtkMenuItemSetUseUnderline(object, setting)
gtkMenuItemSetSubmenu(object, submenu)
gtkMenuItemGetSubmenu(object)
gtkMenuItemRemoveSubmenu(object)
gtkMenuItemSetAccelPath(object, accel.path)
gtkMenuItemGetAccelPath(object)
gtkMenuItemSelect(object)
gtkMenuItemDeselect(object)
gtkMenuItemActivate(object)
gtkMenuItemToggleSizeRequest(object, requisition)
gtkMenuItemToggleSizeAllocate(object, allocation)
gtkMenuItem(label, show = TRUE)
GObject +----GInitiallyUnowned +----GtkObject +----GtkWidget +----GtkContainer +----GtkBin +----GtkItem +----GtkMenuItem +----GtkCheckMenuItem +----GtkImageMenuItem +----GtkSeparatorMenuItem +----GtkTearoffMenuItem
GtkBuildable
and GtkActivatable
.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.gtkMenuItem
is the result of collapsing the constructors of GtkMenuItem
(gtkMenuItemNew
, gtkMenuItemNewWithLabel
, gtkMenuItemNewWithMnemonic
) and accepts a subset of its arguments matching the required arguments of one of its delegate constructors.activate(menuitem, user.data)
menuitem
user.data
activate-item(menuitem, user.data)
menuitem
user.data
toggle-size-allocate(menuitem, user.data)
menuitem
user.data
toggle-size-request(menuitem, user.data)
menuitem
user.data
accel-path
[character : * : Read / Write]label
[character : * : Read / Write]right-justified
[logical : Read / Write]submenu
[GtkMenu
: * : Read / Write]use-underline
[logical : Read / Write]TRUE
if underlines in the text indicate mnemonics
Default value: FALSE Since 2.16 arrow-scaling
[numeric : Read]arrow-spacing
[integer : Read]horizontal-padding
[integer : Read]selected-shadow-type
[GtkShadowType
: Read]toggle-spacing
[integer : Read]width-chars
[integer : Read]