Package: gtk

Accessor gtk-header-bar-decoration-layout

Lambda List

gtk-header-bar-decoration-layout (object)

Syntax

(gtk-header-bar-decoration-layout object) => layout
(setf (gtk-header-bar-decoration-layout object) layout)

Arguments

object -- a gtk-header-bar widget
layout -- a string with the decoration layout, or nil to unset the layout

Details

Accessor of the decoration-layout slot of the gtk-header-bar class.

The gtk-header-bar-decoration-layout slot access function gets the decoration layout. The (setf gtk-header-bar-decoration-layout) slot access function sets the decoration layout for the header bar, overriding the gtk-decoration-layout setting.

There can be valid reasons for overriding the setting, such as a header bar design that does not allow for buttons to take room on the right, or only offers room for a single Close button. Split header bars are another example for overriding the setting.

The format of the string is button names, separated by commas. A colon separates the buttons that should appear on the left from those on the right. Recognized button names are "minimize", "maximize", "close", "icon" for the window icon and "menu" for a menu button for the fallback application menu.

For example, "menu:minimize,maximize,close" specifies a Menu on the left, and Minimize, Maximize and Close buttons on the right.
 

See also

2021-10-14