Package: gtk

Accessor gtk:window-application

Lambda List

gtk:window-application (object)

Syntax

(gtk:window-application object) => application
(setf (gtk:window-application object) application)

Arguments

object -- a gtk:window widget
application -- a gtk:application instance, or nil

Details

Accessor of the application slot of the gtk:window class. The gtk:window-application function gets the application associated with the window. The (setf gtk:window-application) function sets or unsets the application. The application will be kept alive for at least as long as it has any windows associated with it. See the g:application-hold function for a way to keep it alive without windows.

Normally, the connection between the application and the window will remain until the window is destroyed, but you can explicitly remove it by setting the application property to nil. This is equivalent to calling the gtk:application-remove-window function and/or the gtk:application-add-window function on the old/new applications as relevant.
 

See also

2024-10-2