[banshee] Don't show manual-sort hint if drop not in ListView



commit 46ce62366478a7a3458362390b88e1f3f814a1c8
Author: Gabriel Burt <gabriel burt gmail com>
Date:   Tue Mar 9 15:03:32 2010 -0800

    Don't show manual-sort hint if drop not in ListView

 .../Banshee.Collection.Gui/BaseTrackListView.cs    |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/Core/Banshee.ThickClient/Banshee.Collection.Gui/BaseTrackListView.cs b/src/Core/Banshee.ThickClient/Banshee.Collection.Gui/BaseTrackListView.cs
index 1314e7f..9edcf7a 100644
--- a/src/Core/Banshee.ThickClient/Banshee.Collection.Gui/BaseTrackListView.cs
+++ b/src/Core/Banshee.ThickClient/Banshee.Collection.Gui/BaseTrackListView.cs
@@ -67,7 +67,10 @@ namespace Banshee.Collection.Gui
             };
 
             DragFailed += (o, a) => {
-                if (a.DragResult == DragResult.NoTarget) {
+                int x, y;
+                GetPointer (out x, out y);
+                bool inside_list = (x >= 0 && y >= 0) && (x < Allocation.Width && y < Allocation.Height);
+                if (inside_list && a.DragResult == DragResult.NoTarget) {
                     PlaylistSource playlist = ServiceManager.SourceManager.ActiveSource as PlaylistSource;
                     if (playlist != null && !IsReorderable) {
                         Hyena.Log.Information (



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]