Package: gtk

Accessor gtk-menu-tearoff-state

Lambda List

gtk-menu-tearoff-state (object)

Syntax

(gtk-menu-tearoff-state object) => state
(setf (gtk-menu-tearoff-state object) state)

Arguments

object -- a gtk-menu widget
state -- if true, menu is displayed as a tearoff menu

Details

Accessor of the tearoff-state slot of the gtk-menu class.

The gtk-menu-tearoff-state slot access function returns whether the menu is torn off. The (setf gtk-menu-tearoff-state) slot access function changes the tearoff state of the menu.

A menu is normally displayed as drop down menu which persists as long as the menu is active. It can also be displayed as a tearoff menu which persists until it is closed or reattached.

Warning

The gtk-menu tearoff-state function has been deprecated since version 3.10 and should not be used in newly written code.
 

See also

2021-11-14