Data I pass to the delete_event (or other event) handler gets corrupted.

GTK+ FAQ
<<< Previous | Development with GTK+: general questions | Next >>>

# Data I pass to the `delete_event` (or other event) handler gets corrupted.

All event handlers take an additional argument which contains information about the event that triggered the handler. So, a `delete_event` handler must be declared as:

    gint delete_event_handler (GtkWidget   *widget,
                               GdkEventAny *event,
                               gpointer     data);

<<< Previous | Home | Next >>>
By the way, what are the differences between signals and events? | Up | I have my signal connected to the the (whatever) event, but it seems I don't catch it. What's wrong?