Method

GtkWidgetis_toplevel

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

Returns: gboolean
 

TRUE if widget is a toplevel, FALSE otherwise.