[banshee/1.5.1-fixes: 21/56] [ListView] Don't drag when clicking the empty space (bgo#599967)



commit a9a3573c6e4c3d25f0f3869c39fb480287cda068
Author: Alexander Kojevnikov <alexander kojevnikov com>
Date:   Tue Nov 3 17:06:21 2009 +1100

    [ListView] Don't drag when clicking the empty space (bgo#599967)

 .../ListView/ListView_Interaction.cs               |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/Libraries/Hyena.Gui/Hyena.Data.Gui/ListView/ListView_Interaction.cs b/src/Libraries/Hyena.Gui/Hyena.Data.Gui/ListView/ListView_Interaction.cs
index 1b44fee..f000999 100644
--- a/src/Libraries/Hyena.Gui/Hyena.Data.Gui/ListView/ListView_Interaction.cs
+++ b/src/Libraries/Hyena.Gui/Hyena.Data.Gui/ListView/ListView_Interaction.cs
@@ -399,6 +399,7 @@ namespace Hyena.Data.Gui
             int row_index = GetRowAtY (y);
 
             if (row_index < 0 || row_index >= Model.Count) {
+                Gtk.Drag.SourceUnset (this);
                 return true;
             }
             



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