The hierarchy_changed signal is emitted when the anchored state of a widget changes.
A widget is “anchored” when its toplevel ancestor is a Window. This signal is emitted when a widget changes from un-anchored to anchored or vice-versa.
previous_toplevel |
the previous toplevel ancestor, or null if the widget was previously unanchored |