The situation would only change after Pedro II was declared of age in 1840 .
Was in a position to insist that she be recognized as a member of Pedro II 's household .
The situation would only change after Pedro II was declared of age in 1840 and was in a position to insist that she be recognized as a member of his household .