Method

GtkWidgetevent

Declaration [src]

gboolean
gtk_widget_event (
  GtkWidget* widget,
  GdkEvent* event
)

Description [src]

Rarely-used function. This function is used to emit the event signals on a widget (those signals should never be emitted without using this function to do so). If you want to synthesize an event though, don’t use this function; instead, use gtk_main_do_event() so the event will behave as if it were in the event queue. Don’t synthesize expose events; instead, use gdk_window_invalidate_rect() to invalidate a region of the window.

Parameters

event

Type: GdkEvent

A GdkEvent.

The data is owned by the caller of the method.

Return value

Type: gboolean

Return from the event signal emission (TRUE if the event was handled).