From 660e14e63012d6dcdfcb8078865ff30606f5d079 Mon Sep 17 00:00:00 2001 From: jstebbins Date: Tue, 21 Jul 2015 19:53:24 +0000 Subject: LinGui: fix queue auto-scroll during d-n-d git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7355 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- gtk/src/queuehandler.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gtk/src/queuehandler.c b/gtk/src/queuehandler.c index 960b3a619..c4f6bd37f 100644 --- a/gtk/src/queuehandler.c +++ b/gtk/src/queuehandler.c @@ -1828,6 +1828,11 @@ queue_drag_motion_cb( GtkTreeModel *model; 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)) -- cgit v1.2.3