summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2015-07-21 20:51:02 +0000
committerjstebbins <[email protected]>2015-07-21 20:51:02 +0000
commit862423b7b993883efb2ee454688f2792398a9007 (patch)
treef7024f931f1cd96c93ae906903f799641843335c
parent46219fac2b20068b7a154899d7f0ccfdd64c848e (diff)
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
-rw-r--r--gtk/src/queuehandler.c6
1 files changed, 6 insertions, 0 deletions
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;