From 862423b7b993883efb2ee454688f2792398a9007 Mon Sep 17 00:00:00 2001 From: jstebbins Date: Tue, 21 Jul 2015 20:51:02 +0000 Subject: LinGui: merge: fix queue auto-scroll during d-n-d git-svn-id: svn://svn.handbrake.fr/HandBrake/branches/0.10.x@7357 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- gtk/src/queuehandler.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gtk/src/queuehandler.c b/gtk/src/queuehandler.c index 84c7773b1..8069801a1 100644 --- a/gtk/src/queuehandler.c +++ b/gtk/src/queuehandler.c @@ -1608,6 +1608,12 @@ queue_drag_motion_cb( GtkTreeSelection *select; GtkWidget *widget; + int height; + + height = gtk_widget_get_allocated_height(GTK_WIDGET(tv)); + if (y <= 6 || y >= height - 6) + return FALSE; + widget = gtk_drag_get_source_widget(ctx); if (widget == NULL || widget != GTK_WIDGET(tv)) return TRUE; -- cgit v1.2.3