]> Pileus Git - ~andy/gtk/commitdiff
notebook: Use nondeprecated API to query coordinates
authorBenjamin Otte <otte@redhat.com>
Sun, 26 Dec 2010 23:50:30 +0000 (00:50 +0100)
committerBenjamin Otte <otte@redhat.com>
Sun, 26 Dec 2010 23:50:30 +0000 (00:50 +0100)
gtk/gtknotebook.c

index 062f337e051bad2be98400e972a73f133af984ff..ee8f4517f5e2322524ca4dc8d032b994fe39e3fa 100644 (file)
@@ -3596,7 +3596,9 @@ gtk_notebook_drag_failed (GtkWidget      *widget,
       gint x, y;
 
       display = gtk_widget_get_display (widget);
-      gdk_display_get_pointer (display, NULL, &x, &y, NULL);
+      gdk_display_get_device_state (gtk_widget_get_display (widget),
+                                    gdk_drag_context_get_device (context),
+                                    NULL, &x, &y, NULL);
 
       g_signal_emit (notebook, notebook_signals[CREATE_WINDOW], 0,
                      priv->detached_tab->child, x, y, &dest_notebook);