]> granicus.if.org Git - handbrake/commitdiff
LinGui: fix queue auto-scroll during d-n-d
authorjstebbins <jstebbins.hb@gmail.com>
Tue, 21 Jul 2015 19:53:24 +0000 (19:53 +0000)
committerjstebbins <jstebbins.hb@gmail.com>
Tue, 21 Jul 2015 19:53:24 +0000 (19:53 +0000)
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7355 b64f7644-9d1e-0410-96f1-a4d463321fa5

gtk/src/queuehandler.c

index 960b3a619284991a64ed942e0648766533a7b3a2..c4f6bd37f2eab63eeb31fd77277bcdf13d4c8772 100644 (file)
@@ -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))