Package: gtk

Accessor gtk:menu-button-menu-model

Lambda List

gtk:menu-button-menu-model (object)

Syntax

(gtk:menu-button-menu-model object) => model
(setf (gtk:menu-button-menu-model object) model)

Arguments

object -- a gtk:menu-button widget
model -- a g:menu-model object, or nil to unset and disable the button

Details

The accessor for the menu-model slot of the gtk:menu-button class gets or sets the menu model used to generate the popup. Pass nil to dissociate any existing menu model and disable the button.

A gtk:popover widget will be created from the menu model with the gtk:popover-menu-new-from-model function. Actions will be connected as documented for this function.

If the popover property is already set, it will be dissociated from the menu button, and the property is set to nil.
 

See also

2025-08-05