summaryrefslogtreecommitdiff
path: root/gtk/gtkplacessidebar.c
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2017-12-11 22:55:54 +0100
committerBenjamin Otte <otte@redhat.com>2017-12-12 00:31:49 +0100
commit04ac4c66aeeb559983b74d97b44db72b0f5028cc (patch)
tree4fd0c958335fcfe94e09357ba0f2845e1a0742c2 /gtk/gtkplacessidebar.c
parent23c798b41d57bb4f8255f61c6f0f3b6e1516eeca (diff)
downloadgtk+-04ac4c66aeeb559983b74d97b44db72b0f5028cc.tar.gz
dnd: Pass device, not event
You don't start a dnd operation with a device, you start it with an event.
Diffstat (limited to 'gtk/gtkplacessidebar.c')
-rw-r--r--gtk/gtkplacessidebar.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gtk/gtkplacessidebar.c b/gtk/gtkplacessidebar.c
index 56c392ac40..ceae9e5a6d 100644
--- a/gtk/gtkplacessidebar.c
+++ b/gtk/gtkplacessidebar.c
@@ -1725,8 +1725,9 @@ on_motion_notify_event (GtkWidget *widget,
{
sidebar->dragging_over = TRUE;
- gtk_drag_begin_with_coordinates (widget, sidebar->source_targets, GDK_ACTION_MOVE,
- (GdkEvent*)event,
+ gtk_drag_begin_with_coordinates (widget,
+ gdk_event_get_device ((GdkEvent*) event),
+ sidebar->source_targets, GDK_ACTION_MOVE,
-1, -1);
}