GtkWidget::is_ancestor

bool is_ancestor(GtkWidget ancestor);

Returns whether or not the calling widget is an ancestor of the given widget.

See also: get_ancestor()