Widget.isToplevel

bool isToplevel()

Determines whether widget is a toplevel widget.

Currently only #GtkWindow and #GtkInvisible (and out-of-process #GtkPlugs) are toplevel widgets. Toplevel widgets have no parent widget.

Returns

true if widget is a toplevel, false otherwise