Widget.isAncestor

Determines whether @widget is somewhere inside @ancestor, possibly with intermediate containers.

class Widget
bool
isAncestor

Parameters

ancestor Widget

another GtkWidget

Return Value

Type: bool

%TRUE if @ancestor contains @widget as a child, grandchild, great grandchild, etc.

Meta