GTK Signals (Cont.) The callback itself looks like this: /* * callback event function for the gtk delete event. invoked * when the application is closed using the window manager. */ int delete_event(GtkWidget *widget, GdkEvent *event, gpointer data) { /* If you return FALSE in the "delete_event" signal handler, * GTK will emit the "destroy" signal. Returning TRUE means * you don't want the window to be destroyed. * This is useful for popping up 'are you sure you want to * quit?' type dialogs. */ return(FALSE); }