Package: gtk

Accessor gtk:window-titlebar

Lambda List

gtk:window-titlebar (object)

Syntax

(gtk:window-titlebar window) => widget
(setf (gtk:window-titlebar window) widget)

Arguments

window -- a gtk:window widget
widget -- a gtk:widget object to use as titlebar

Details

Accessor of the titlebar slot of the gtk:window class. The gtk:window-titlebar function returns the custom titlebar for the window. The (setf gtk:window-titlebar) function sets a custom titlebar.

A typical widget used here is the gtk:header-bar widget, as it provides various features expected of a titlebar while allowing the addition of child widgets to it.

If you set a custom titlebar, GTK will do its best to convince the window manager not to put its own titlebar on the window. Depending on the system, this function may not work for a window that is already visible, so you set the titlebar before calling the gtk:widget-visible function.

Since 4.6
 

See also

2024-10-2