[hyena] Make model's Selection a property



commit 7f69886ed7aaa0ad1af6b0d38a22c0d80df4025e
Author: Gabriel Burt <gabriel burt gmail com>
Date:   Thu May 13 10:48:54 2010 -0700

    Make model's Selection a property
    
    And fix bug where the Selection's MaxIndex was updated by the ListView -
    so models without a ListView didn't have an up to date Selection.

 .../Hyena.Data.Gui/ListView/ListView_Model.cs      |    4 ----
 1 files changed, 0 insertions(+), 4 deletions(-)
---
diff --git a/src/Hyena.Gui/Hyena.Data.Gui/ListView/ListView_Model.cs b/src/Hyena.Gui/Hyena.Data.Gui/ListView/ListView_Model.cs
index 9570702..c342f71 100644
--- a/src/Hyena.Gui/Hyena.Data.Gui/ListView/ListView_Model.cs
+++ b/src/Hyena.Gui/Hyena.Data.Gui/ListView/ListView_Model.cs
@@ -112,10 +112,6 @@ namespace Hyena.Data.Gui
                 ScrollToY (vadjustment.Value);
             }
 
-            if (Model != null && Selection != null) {
-                Selection.MaxIndex = Model.Count - 1;
-            }
-
             if (Parent is ScrolledWindow) {
                 Parent.QueueDraw ();
             }



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