Widget.registerWindow

Registers a gdk.Window with the widget and sets it up so that the widget receives events for it. Call Widget.unregisterWindow when destroying the window.

Before 3.8 you needed to call Window.setUserData directly to set this up. This is now deprecated and you should use Widget.registerWindow instead. Old code will keep working as is, although some new features like transparency might not work perfectly.

class Widget
void
registerWindow
(
GdkWin window
)

Parameters

window GdkWin

Meta