Widget.isAncestor

bool isAncestor(gtk.widget.Widget ancestor)

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

Parameters

ancestoranother #GtkWidget

Returns

true if ancestor contains widget as a child,

grandchild, great grandchild, etc.