GtkTreeStore::is_ancestor

bool is_ancestor(GtkTreeIter iter, GtkTreeIter descendant);

Returns true if iter is an ancestor of descendant. That is, iter is the parent (or grandparent or great-grandparent) of descendant.