Package: gtk

Function gtk:window-toplevels

Lambda List

gtk:window-toplevels ()

Return Value

The g:list-model object for the list of toplevel widgets.

Details

Returns a list of all existing toplevel windows. If you want to iterate through the list and perform actions involving callbacks that might destroy the widgets or add new ones, be aware that the list of toplevels will change and emit the "items-changed" signal.

Notes

The gtk:window-list-toplevels function is more convenient to use in the Lisp binding because it returns a Lisp list containing the toplevel window.
 

See also

2026-10-03