[hyena] Keep selection visible when sorting (bgo#609868)



commit 946f06dc10c23fe4643e5ed1e275278643de4dec
Author: Alexander Kojevnikov <alexander kojevnikov com>
Date:   Mon Feb 15 19:13:39 2010 +1100

    Keep selection visible when sorting (bgo#609868)

 .../Hyena.Data.Gui/ListView/ListView_Header.cs     |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/Hyena.Gui/Hyena.Data.Gui/ListView/ListView_Header.cs b/src/Hyena.Gui/Hyena.Data.Gui/ListView/ListView_Header.cs
index 95c1e63..f825fea 100644
--- a/src/Hyena.Gui/Hyena.Data.Gui/ListView/ListView_Header.cs
+++ b/src/Hyena.Gui/Hyena.Data.Gui/ListView/ListView_Header.cs
@@ -289,6 +289,7 @@ namespace Hyena.Data.Gui
                 IsReorderable = sortable.SortColumn == null || sortable.SortColumn.SortType == SortType.None;
 
                 Model.Reload ();
+                CenterOnSelection ();
                 RecalculateColumnSizes ();
                 RegenerateColumnCache ();
                 InvalidateHeader ();



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