Gtk.Widget::hierarchy-changed
function callback(widget, previous_toplevel:Gtk.Widget, ):void;
The ::hierarchy-changed signal is emitted when the anchored state of a widget changes. A widget is <firstterm>anchored</firstterm> when its toplevel ancestor is a Gtk.Window. This signal is emitted when a widget changes from un-anchored to anchored or vice-versa.
- widget
instance of Gtk.Widget that is emitting the signal
- previous_toplevel
the previous toplevel ancestor, or null if the widget was previously unanchored