get_root


Description:

public unowned Root? get_root ()

Returns the `GtkRoot` widget of this.

This function will return null if the widget is not contained inside a widget tree with a root widget.

`GtkRoot` widgets will return themselves here.

Parameters:

this

a `GtkWidget`

Returns:

the root widget of this, or null