summaryrefslogtreecommitdiff
path: root/gdk/gdkdevice.c
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2011-03-07 16:01:46 +0100
committerBenjamin Otte <otte@redhat.com>2011-03-08 23:13:39 +0100
commita3b2840cae2fa82aa1e7a1851238b798f084df5c (patch)
tree919cb649feb569e905475c58f581149ea44063fe /gdk/gdkdevice.c
parent191428f596a532799059124ed41b4b348e48634e (diff)
downloadgtk+-a3b2840cae2fa82aa1e7a1851238b798f084df5c.tar.gz
Remove support for GDK_NATIVE_WINDOWS
GDK_NATIVE_WINDOWS was a way to keep some old apps running that did weird things in gtk2. We should not have to carry this forwards in gtk 3.x. We do however keep a g_warning() call reminding people of this fact to ease debugging when they try to port their applications. https://bugzilla.gnome.org/show_bug.cgi?id=644119
Diffstat (limited to 'gdk/gdkdevice.c')
-rw-r--r--gdk/gdkdevice.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/gdk/gdkdevice.c b/gdk/gdkdevice.c
index 8106bea510..227c75c9d2 100644
--- a/gdk/gdkdevice.c
+++ b/gdk/gdkdevice.c
@@ -1216,10 +1216,7 @@ gdk_device_grab (GdkDevice *device,
g_return_val_if_fail (GDK_IS_DEVICE (device), GDK_GRAB_SUCCESS);
g_return_val_if_fail (GDK_IS_WINDOW (window), GDK_GRAB_SUCCESS);
- if (_gdk_native_windows)
- native = window;
- else
- native = gdk_window_get_toplevel (window);
+ native = gdk_window_get_toplevel (window);
while (native->window_type == GDK_WINDOW_OFFSCREEN)
{