Package: gtk

Accessor gtk:window-deletable

Lambda List

gtk:window-deletable (object)

Syntax

(gtk:window-deletable object) => setting
(setf (gtk:window-deletable object) setting)

Arguments

object -- a gtk:window widget
setting -- true to decorate the window as deletable

Details

The accessor for the deletable slot of the gtk:window class gets or sets whether the window should be deletable. A deletable window has a Close button.

By default, windows have a Close button in the window frame. Some window managers allow GTK to disable this button. If you set the deletable property to false using this function, GTK will do its best to convince the window manager not to show a Close button. Depending on the system, this function may not have any effect when called on a window that is already visible, so you should call it before calling the gtk:widget-visible function.

On Windows, this function always works, since there is no window manager policy involved.
 

See also

2025-07-28