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

Accessor of the menu-model slot of the gtk:menu-button class. The gtk:menu-button-menu-model function returns the menu model used to generate the popup. The (setf gtk:menu-button-menu-model) function sets the menu model from which the popup will be constructed, or 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

2024-4-20