Package: gtk

Accessor gtk-window-modal

Lambda List

gtk-window-modal (object)

Syntax

(gtk-window-modal object) => modal
(setf (gtk-window-modal object) modal)

Arguments

object -- a gtk-window widget
modal -- a boolean whether the window is modal

Details

Accessor of the modal slot of the gtk-window class.

The gtk-window-modal slot access function returns true if the window is set to be modal and establishes a grab when shown. The (setf gtk-window-modal) slot access function sets a window modal or non-modal.

Modal windows prevent interaction with other windows in the same application. To keep modal dialogs on top of main application windows, use the gtk-window-transient-for function to make the dialog transient for the parent. Most window managers will then disallow lowering the dialog below the parent.
 

See also

2021-9-9