Widget.destroyed
void destroyed(gtk.widget.Widget widgetPointer)This function sets *widget_pointer to null if widget_pointer != null. It’s intended to be used as a callback connected to the “destroy” signal of a widget. You connect [gtk.widget.Widget.destroyed] as a signal handler, and pass the address of your widget variable as user data. Then when the widget is destroyed, the variable will be set to null. Useful for example to avoid multiple copies of the same dialog.
Parameters
widgetPointer | address of a variable that contains widget |