API: gdk: gdk_display_get_device_state() => gdk_device_get_position()

The API was not display-specific, but belonged to the device. Also, we
didn't find a user of the modifier mask, so we dropped it.
This commit is contained in:
Benjamin Otte
2010-12-27 18:03:38 +01:00
parent 586283ecbb
commit 0c285341a9
12 changed files with 77 additions and 75 deletions

View File

@ -3596,9 +3596,8 @@ gtk_notebook_drag_failed (GtkWidget *widget,
gint x, y;
display = gtk_widget_get_display (widget);
gdk_display_get_device_state (gtk_widget_get_display (widget),
gdk_drag_context_get_device (context),
NULL, &x, &y, NULL);
gdk_device_get_position (gdk_drag_context_get_device (context),
NULL, &x, &y);
g_signal_emit (notebook, notebook_signals[CREATE_WINDOW], 0,
priv->detached_tab->child, x, y, &dest_notebook);