Method

GtkWidgetis_toplevel

since: 2.18

Declaration [src]

gboolean
gtk_widget_is_toplevel (
  GtkWidget* widget
)

Description [src]

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.

Available since: 2.18

Return value

Type: gboolean

TRUE if widget is a toplevel, FALSE otherwise.