get_instance


Description:

[ CCode ( cname = "xfw_application_get_instance" ) ]
public unowned ApplicationInstance? get_instance (Window window)

Finds the ApplicationInstance to which window belongs.

Parameters:

this

an Application.

window

the application window you want to get the instance of.

Returns:

The ApplicationInstance to which window belongs, or null if window does not belong to this, or if listing instances is not supported on the windowing environment in use. The returned ApplicationInstance is owned by this.