Package: gtk

Accessor gtk:menu-button-can-shrink

Lambda List

gtk:menu-button-can-shrink (object)

Syntax

(gtk:menu-button-can-shrink object) => setting
(setf (gtk:menu-button-can-shrink object) setting)

Arguments

object -- a gtk:menu-button widget
setting -- a boolean whether the menu button can shrink

Details

Accessor of the can-shrink slot of the gtk:menu-button class. The gtk:menu-button-can-shrink function retrieves whether the menu button can be smaller than the natural size of its contents. The (setf gtk:menu-button-can-shrink) function sets the property.

For text menu buttons, setting the can-shrink property to true will ellipsize the label. For icon menu buttons, this function has no effect.

Since 4.12
 

See also

2024-4-20