Signal

GtkWidget::event

Declaration

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

Description [src]

The GTK+ main loop will emit three signals for each GDK event delivered to a widget: one generic ::event signal, another, more specific, signal that matches the type of event delivered (e.g. GtkWidget::key-press-event) and finally a generic GtkWidget::event-after signal.

Default handler:

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

Parameters

event GdkEvent
 

The GdkEvent which triggered this signal.

 The data is owned by the caller of the function.

Return value

Returns: gboolean
 

TRUE to stop other handlers from being invoked for the event and to cancel the emission of the second specific ::event signal. FALSE to propagate the event further and to allow the emission of the second signal. The ::event-after signal is emitted regardless of the return value.