summaryrefslogtreecommitdiff
path: root/gdk/gdkdisplay.c
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2011-01-03 16:49:13 +0100
committerBenjamin Otte <otte@redhat.com>2011-01-03 16:51:38 +0100
commitd72d19d247965fb5561c1d1ce35533102461a67d (patch)
treec6b2f0582f1cf72e60ca35428cceaf699dc562a5 /gdk/gdkdisplay.c
parentff1ad99dce48d336e7b87e8be2aaf7c3b82fea8c (diff)
downloadgtk+-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/gdkdisplay.c')
-rw-r--r--gdk/gdkdisplay.c31
1 files changed, 0 insertions, 31 deletions
diff --git a/gdk/gdkdisplay.c b/gdk/gdkdisplay.c
index b83f1009a0..71bc00e76a 100644
--- a/gdk/gdkdisplay.c
+++ b/gdk/gdkdisplay.c
@@ -620,37 +620,6 @@ _gdk_display_enable_motion_hints (GdkDisplay *display,
}
/**
- * gdk_display_set_device_hooks:
- * @display: a #GdkDisplay.
- * @new_hooks: (allow-none): a table of pointers to functions for getting quantities related
- * to all devices position, or %NULL to restore the default table.
- *
- * This function allows for hooking into the operation of getting the current location of any
- * #GdkDevice on a particular #GdkDisplay. This is only useful for such low-level tools as
- * an event recorder. Applications should never have any reason to use this facility.
- *
- * Returns: (transfer none): The previous device hook table.
- *
- * Since: 3.0
- **/
-GdkDisplayDeviceHooks *
-gdk_display_set_device_hooks (GdkDisplay *display,
- const GdkDisplayDeviceHooks *new_hooks)
-{
- const GdkDisplayDeviceHooks *result;
-
- g_return_val_if_fail (GDK_IS_DISPLAY (display), NULL);
- result = display->device_hooks;
-
- if (new_hooks)
- display->device_hooks = new_hooks;
- else
- display->device_hooks = &default_device_hooks;
-
- return (GdkDisplayDeviceHooks *) result;
-}
-
-/**
* gdk_display_get_pointer:
* @display: a #GdkDisplay
* @screen: (allow-none): location to store the screen that the