is_ancestor() tests whether the widget named in the ancestor parameter is an ancestor of the calling widget, in the packing hierarchy rather than in the GTK object hierarchy.
This method is used extensively in GTK+ internals, but can also be useful in PHP-GTK, particularly for debugging purposes.