diff options
Diffstat (limited to 'gdk/gdkevents.c')
-rw-r--r-- | gdk/gdkevents.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/gdk/gdkevents.c b/gdk/gdkevents.c index 4a9d0b965a..43e45d77a8 100644 --- a/gdk/gdkevents.c +++ b/gdk/gdkevents.c @@ -2184,3 +2184,21 @@ gdk_setting_get (const gchar *name, { return gdk_screen_get_setting (gdk_screen_get_default (), name, value); } + +/** + * gdk_event_get_event_type: + * @event: a #GdkEvent + * + * Retrieves the type of the event. + * + * Return value: a #GdkEventType + * + * Since: 3.10 + */ +GdkEventType +gdk_event_get_event_type (const GdkEvent *event) +{ + g_return_val_if_fail (event != NULL, GDK_NOTHING); + + return event->type; +} |