Widget.addOnUnmap

The ::unmap signal is emitted when @widget is going to be unmapped, which means that either it or any of its parents up to the toplevel widget have been set as hidden.

As ::unmap indicates that a widget will not be shown any longer, it can be used to, for example, stop an animation on the widget.

class Widget
addOnUnmap
(
void delegate dlg
,)

Meta