diff options
author | Carlos Garnacho <carlosg@gnome.org> | 2017-05-04 13:41:29 +0200 |
---|---|---|
committer | Carlos Garnacho <carlosg@gnome.org> | 2017-05-25 16:25:59 +0200 |
commit | 65de0ebea3d2656b75ffcb41fd6ce2be1aaa01a2 (patch) | |
tree | 1957fb5229ef09d206c86ec6795090fe7ec651e5 /gdk/gdkevents.h | |
parent | 5483b9db2d53c0b9974076475cd98d4606e4b7ee (diff) | |
download | gtk+-65de0ebea3d2656b75ffcb41fd6ce2be1aaa01a2.tar.gz |
gdk: Make it possible to attach user data to GdkEvents
As event->any.window is the toplevel, this is not useful anymore to
determine the window/widget that is the target for this event. Add
helper functions to attach user data to GdkEvents so the target
widget can be stored on the gtk/ side.
These calls should be made private with the rest of GdkEvent related
API.
Diffstat (limited to 'gdk/gdkevents.h')
-rw-r--r-- | gdk/gdkevents.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gdk/gdkevents.h b/gdk/gdkevents.h index 8ff9613777..39cb761ecd 100644 --- a/gdk/gdkevents.h +++ b/gdk/gdkevents.h @@ -1567,6 +1567,12 @@ int gdk_event_get_scancode (GdkEvent *event); GDK_AVAILABLE_IN_3_22 gboolean gdk_event_get_pointer_emulated (GdkEvent *event); +GDK_AVAILABLE_IN_3_90 +void gdk_event_set_user_data (GdkEvent *event, + GObject *user_data); +GDK_AVAILABLE_IN_3_90 +GObject * gdk_event_get_user_data (GdkEvent *event); + G_END_DECLS #endif /* __GDK_EVENTS_H__ */ |