diff options
author | Benjamin Otte <otte@redhat.com> | 2011-01-03 16:49:13 +0100 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2011-01-03 16:51:38 +0100 |
commit | d72d19d247965fb5561c1d1ce35533102461a67d (patch) | |
tree | c6b2f0582f1cf72e60ca35428cceaf699dc562a5 /gdk/gdkdisplayprivate.h | |
parent | ff1ad99dce48d336e7b87e8be2aaf7c3b82fea8c (diff) | |
download | gtk+-d72d19d247965fb5561c1d1ce35533102461a67d.tar.gz |
API: gdk: Remove gdk_display_set_device_hooks()
There's no usecase for them, so remove them before we have to commit to
keeping an API.
Make the hooks private for now, actually removing them will come in
followup patches.
Diffstat (limited to 'gdk/gdkdisplayprivate.h')
-rw-r--r-- | gdk/gdkdisplayprivate.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/gdk/gdkdisplayprivate.h b/gdk/gdkdisplayprivate.h index 2662eee7b3..ceea86bb8c 100644 --- a/gdk/gdkdisplayprivate.h +++ b/gdk/gdkdisplayprivate.h @@ -31,6 +31,28 @@ G_BEGIN_DECLS #define GDK_DISPLAY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GDK_TYPE_DISPLAY, GdkDisplayClass)) +typedef struct _GdkDisplayDeviceHooks GdkDisplayDeviceHooks; + +struct _GdkDisplayDeviceHooks +{ + void (* get_device_state) (GdkDisplay *display, + GdkDevice *device, + GdkScreen **screen, + gint *x, + gint *y, + GdkModifierType *mask); + GdkWindow * (* window_get_device_position) (GdkDisplay *display, + GdkDevice *device, + GdkWindow *window, + gint *x, + gint *y, + GdkModifierType *mask); + GdkWindow * (* window_at_device_position) (GdkDisplay *display, + GdkDevice *device, + gint *win_x, + gint *win_y); +}; + typedef struct _GdkDisplayClass GdkDisplayClass; /* Tracks information about the keyboard grab on this display */ |