Package: gtk
Class gtk:menu-item
Superclassesgtk:bin, gtk:container, gtk:widget, gtk:buildable, gtk:activatable, gobject:object, common-lisp:standard-object, common-lisp:t Documented SubclassesDirect SlotsDetails The gtk:menu-item 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 the gtk:bin class it can hold any valid child widget, although only a few are really useful. GtkMenuItem as GtkBuildableExample: A UI definition fragment with submenus.
<object class="GtkMenuItem">
<child type="submenu">
<object class="GtkMenu"/>
</child>
</object> CSS nodesmenuitem ├── <child> ╰── [arrow.right]The gtk:menu-item class has a single CSS node with name menuitem. If the menu item has a submenu, it gets another CSS node with name arrow, which has the .left or .right style class. Style Property DetailsSignal Details | Returned bySlot Access Functions
Inherited Slot Access FunctionsSee also |
#2025-07-16