Method

GtkWidgetdestroyed

Declaration [src]

void
gtk_widget_destroyed (
  GtkWidget* widget,
  GtkWidget** widget_pointer
)

Description [src]

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_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

widget_pointer

Type: GtkWidget

Address of a variable that contains widget.

The argument will be modified by the function.
The returned data is owned by the instance.