[ Version ( since = "3.8" ) ]
public void register_window (Window window)
Registers a Window with the widget and sets it up so that the widget receives events for it.
Call unregister_window when destroying the window.
Before 3.8 you needed to call set_user_data directly to set this up. This is now deprecated and you should use register_window instead. Old code will keep working as is, although some new features like transparency might not work perfectly.
this |
a Widget |
window |
a Window |