Gtk.Widget.prototype.set_window

function set_window(window:Gdk.Window):void {
    // Gjs wrapper for gtk_widget_set_window()
}

Sets a widget's window. This function should only be used in a widget's Gtk.realize implementation. The %window passed is usually either new window created with Gdk.new, or the window of its parent widget as returned by Gtk.Widget.prototype.get_parent_window.

Widgets must indicate whether they will create their own Gdk.Window by calling Gtk.Widget.prototype.set_has_window. This is usually done in the widget's init() function.

<note><para>This function does not add any reference to window.</para></note>

Since 2.18

window

a Gdk.Window