set_application


Description:

[ Version ( since = "3.0" ) ]
public void set_application (Application? application)

Sets or unsets the Application associated with the window.

The application will be kept alive for at least as long as it has any windows associated with it (see hold 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 to null.

This is equivalent to calling remove_window and/or add_window on the old/new applications as relevant.

Parameters:

this

a Window

application

a Application, or null to unset




2022 vala-language.org