summaryrefslogtreecommitdiffstats
path: root/gtk
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2015-07-21 19:53:24 +0000
committerjstebbins <[email protected]>2015-07-21 19:53:24 +0000
commit660e14e63012d6dcdfcb8078865ff30606f5d079 (patch)
tree25cb5cb9dc8a5d144fbebef5fc1e6a227ede453d /gtk
parentd6c248001feb273f56253490bbdaee4af66b42e6 (diff)
LinGui: fix queue auto-scroll during d-n-d
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7355 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'gtk')
-rw-r--r--gtk/src/queuehandler.c5
1 files changed, 5 insertions, 0 deletions
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))