void gtk_window_set_application ( GtkWindow* window, GtkApplication* application )
Sets or unsets the
GtkApplication associated with the window.
The application will be kept alive for at least as long as it has any windows
associated with it (see
g_application_hold() for a way to keep it alive
Normally, the connection between the application and the window will remain
until the window is destroyed, but you can explicitly remove it by setting
This is equivalent to calling
gtk_application_add_window() on the old/new applications as relevant.
Available since: 3.0
The argument can be
The data is owned by the caller of the method.