Gtk.Application.prototype.add_window

function add_window(window:Gtk.Window):void {
    // Gjs wrapper for gtk_application_add_window()
}

Adds a window to application.

This call is equivalent to setting the Gtk.application property of window to application.

Normally, the connection between the application and the window will remain until the window is destroyed, but you can explicitly remove it with Gtk.remove_window.

GTK+ will keep the application running as long as it has any windows.

Since 3.0

window

a Gtk.Window