Gtk.TreePath.prototype.is_descendant

function is_descendant(ancestor:Gtk.TreePath):Boolean {
    // Gjs wrapper for gtk_tree_path_is_descendant()
}

Returns true if path is a descendant of ancestor.

ancestor

another Gtk.TreePath

Returns

true if ancestor contains path somewhere below it