summaryrefslogtreecommitdiff
path: root/gtk/gtkdnd.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/gtkdnd.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/gtkdnd.c')
-rw-r--r--gtk/gtkdnd.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/gtk/gtkdnd.c b/gtk/gtkdnd.c
index 48d726bc95..bb90456026 100644
--- a/gtk/gtkdnd.c
+++ b/gtk/gtkdnd.c
@@ -2415,8 +2415,7 @@ gtk_drag_begin_internal (GtkWidget *widget,
}
else
{
- gdk_display_get_device_state (gtk_widget_get_display (widget), pointer,
- &info->cur_screen, &info->cur_x, &info->cur_y, NULL);
+ gdk_device_get_position (pointer, &info->cur_screen, &info->cur_x, &info->cur_y);
}
g_signal_emit_by_name (widget, "drag-begin", info->context);
@@ -4160,10 +4159,7 @@ gtk_drag_motion_cb (GtkWidget *widget,
if (event->is_hint)
{
- GdkDisplay *display = gtk_widget_get_display (widget);
-
- gdk_display_get_device_state (display, event->device,
- &screen, &x_root, &y_root, NULL);
+ gdk_device_get_position (event->device, &screen, &x_root, &y_root);
event->x_root = x_root;
event->y_root = y_root;
}