summaryrefslogtreecommitdiff
path: root/gtk/gtknotebook.c
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2010-12-27 18:03:38 +0100
committerBenjamin Otte <otte@redhat.com>2010-12-27 18:46:41 +0100
commit0c285341a959ddbaad4ecc75e5f1a1ad66c5274e (patch)
treed45d750b9d721d21f614d8361a82bb745bf9dd87 /gtk/gtknotebook.c
parent586283ecbbfc0c5fb3354c07e978c680fe89f129 (diff)
downloadgtk+-0c285341a959ddbaad4ecc75e5f1a1ad66c5274e.tar.gz
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.
Diffstat (limited to 'gtk/gtknotebook.c')
-rw-r--r--gtk/gtknotebook.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/gtk/gtknotebook.c b/gtk/gtknotebook.c
index ee8f4517f5..742662de90 100644
--- a/gtk/gtknotebook.c
+++ b/gtk/gtknotebook.c
@@ -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);