Package: gtk

Function gtk:application-windows

Lambda List

gtk:application-windows (application)

Arguments

application -- a gtk:application instance

Return Value

The list of gtk:window widgets.

Details

Gets a list of the windows associated with the application. The list is sorted by most recently focused windows, such that the first element is the currently focused window. This is useful for choosing a parent for a transient window.

Examples

In this example, the function iterates over the list of windows and destroys the windows. After the last window is destroyed, the application quits.
(defun action-quit (application action parameter)
  (declare (ignore action parameter))
  (let ((windows (gtk:application-windows application)))
    (dolist (window windows)
      (gtk:window-destroy window))))    
 

See also

2024-10-7