[hyena] Restored GetRowAtY but marked obsolete



commit efdc925ac33030b16736305fdd2fe0f92a36e478
Author: Aaron Bockover <abockover novell com>
Date:   Thu Dec 3 13:20:39 2009 +0800

    Restored GetRowAtY but marked obsolete
    
    The old list-only GetRowAtY method was protected, not private, so
    I am adding it back, but marking it with the Obsolete attribute
    in favor of the new GetModelRowAt method.
    
    Updated BaseTrackListView to use GetModelRowAt.

 .../ListView/ListView_Interaction.cs               |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/Hyena.Gui/Hyena.Data.Gui/ListView/ListView_Interaction.cs b/src/Hyena.Gui/Hyena.Data.Gui/ListView/ListView_Interaction.cs
index 9ee9e7d..7aa0168 100644
--- a/src/Hyena.Gui/Hyena.Data.Gui/ListView/ListView_Interaction.cs
+++ b/src/Hyena.Gui/Hyena.Data.Gui/ListView/ListView_Interaction.cs
@@ -784,6 +784,12 @@ namespace Hyena.Data.Gui
             }
         }
 
+        [Obsolete ("Use GetModelRowAt (x, y) instead.")]
+        protected int GetRowAtY (int y)
+        {
+            return GetModelRowAt (0, y);
+        }
+
         protected Cairo.PointD GetViewPointForModelRow (int row)
         {
             return LayoutStyle == DataViewLayoutStyle.Grid



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