This will be null if the widget is not contained in a root widget.
Widget.root
Get root property.
Returns
The gtk.root.Root widget of the widget tree containing this widget.
Get root property.
This will be null if the widget is not contained in a root widget.