Function

GdkEventhandler_set

Declaration [src]

void
gdk_event_handler_set (
  GdkEventFunc func,
  gpointer data,
  GDestroyNotify notify
)

Description [src]

Sets the function to call to handle all events from GDK.

Note that GTK+ uses this to install its own event handler, so it is usually not useful for GTK+ applications. (Although an application can call this function then call gtk_main_do_event() to pass events to GTK+.)

Parameters

func

Type: GdkEventFunc

The function to call to handle events from GDK.

data

Type: gpointer

User data to pass to the function.

The argument can be NULL.
The data is owned by the caller of the function.
notify

Type: GDestroyNotify

The function to call when the handler function is removed, i.e. when gdk_event_handler_set() is called with another event handler.