Signal

GtkWidget::delete-event

Declaration

gboolean
delete_event (
  GtkWidget* self,
  GdkEvent* event,
  gpointer user_data
)

Description [src]

The ::delete-event signal is emitted if a user requests that a toplevel window is closed. The default handler for this signal destroys the window. Connecting gtk_widget_hide_on_delete() to this signal will cause the window to be hidden instead, so that it can later be shown again without reconstructing it.

Default handler:

The default handler is called after the handlers added via g_signal_connect().

Parameters

event

Type: GdkEvent

The event which triggered this signal.

The data is owned by the caller of the function.

Return value

Type: gboolean

TRUE to stop other handlers from being invoked for the event. FALSE to propagate the event further.