Sets a widget’s window. This function should only be used in a
widget’s #GtkWidget::realize implementation. The window passed is
usually either new window created with gdk.window.Window.new_, or the
window of its parent widget as returned by
gtk.widget.Widget.getParentWindow.
Widgets must indicate whether they will create their own #GdkWindow
by calling gtk.widget.Widget.setHasWindow. This is usually done in the
widget’s init() function.
Note that this function does not add any reference to window.
Sets a widget’s window. This function should only be used in a widget’s #GtkWidget::realize implementation. The window passed is usually either new window created with gdk.window.Window.new_, or the window of its parent widget as returned by gtk.widget.Widget.getParentWindow.
Widgets must indicate whether they will create their own #GdkWindow by calling gtk.widget.Widget.setHasWindow. This is usually done in the widget’s init() function.
Note that this function does not add any reference to window.