Gtk.TreePath.prototype.is_ancestor

function is_ancestor(descendant:Gtk.TreePath):Boolean {
    // Gjs wrapper for gtk_tree_path_is_ancestor()
}

Returns true if descendant is a descendant of path.

descendant

another Gtk.TreePath

Returns

true if descendant is contained inside path