Package: gtk

Accessor gtk-menu-button-popup

Lambda List

gtk-menu-button-popup (object)

Syntax

(gtk-menu-button-popup object) => popup
(setf (gtk-menu-button-popup object) popup)

Arguments

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

Details

Accessor of the popup slot of the gtk-menu-button class.

The gtk-menu-button-popup slot access function returns the menu that pops out of the button. If the button does not use a menu, this function returns nil. The (setf gtk-menu-button-popup) slot access function sets the menu that will be popped up when the menu button is clicked, or nil to dissociate any existing menu and disable the button.

If the menu-model or popover are set, those objects are dissociated from the menu button, and those properties are set to nil.
 

See also

2021-12-23