diff options
author | Matthias Clasen <mclasen@redhat.com> | 2013-08-13 19:06:48 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2013-08-13 19:06:48 -0400 |
commit | 7d48c3b2c7fa73c0496eb2e53634b7f9d418b83e (patch) | |
tree | f9d7a374d0f10aba76f6afb56aadab01b78b0636 /gdk/gdkevents.h | |
parent | 35a4bba9027b2c17ed98dfc78445224379e682ec (diff) | |
download | gtk+-7d48c3b2c7fa73c0496eb2e53634b7f9d418b83e.tar.gz |
Add a function to get the event type
This is useful for language bindings, who can't easily
access the struct field directly.
https://bugzilla.gnome.org/show_bug.cgi?id=700029
Diffstat (limited to 'gdk/gdkevents.h')
-rw-r--r-- | gdk/gdkevents.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/gdk/gdkevents.h b/gdk/gdkevents.h index 77e15b03b5..4cd2d55db1 100644 --- a/gdk/gdkevents.h +++ b/gdk/gdkevents.h @@ -1289,6 +1289,9 @@ GdkScreen *gdk_event_get_screen (const GdkEvent *event); GDK_AVAILABLE_IN_3_4 GdkEventSequence *gdk_event_get_event_sequence (const GdkEvent *event); +GDK_AVAILABLE_IN_3_10 +GdkEventType gdk_event_get_event_type (const GdkEvent *event); + GDK_AVAILABLE_IN_ALL void gdk_set_show_events (gboolean show_events); GDK_AVAILABLE_IN_ALL @@ -1297,8 +1300,8 @@ gboolean gdk_get_show_events (void); #ifndef GDK_MULTIHEAD_SAFE GDK_AVAILABLE_IN_ALL -gboolean gdk_setting_get (const gchar *name, - GValue *value); +gboolean gdk_setting_get (const gchar *name, + GValue *value); #endif /* GDK_MULTIHEAD_SAFE */ |