[banshee/a11y: 2/27] [a11y] Added FocusedColumnIndex.



commit 471172b11b9ce2da0cda77dce8d2091ebaaf4ee1
Author: Eitan Isaacson <eitan ascender com>
Date:   Wed Sep 30 09:40:02 2009 -0700

    [a11y] Added FocusedColumnIndex.

 src/Libraries/Hyena/Hyena.Collections/Selection.cs |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)
---
diff --git a/src/Libraries/Hyena/Hyena.Collections/Selection.cs b/src/Libraries/Hyena/Hyena.Collections/Selection.cs
index 178a9a8..078edc7 100644
--- a/src/Libraries/Hyena/Hyena.Collections/Selection.cs
+++ b/src/Libraries/Hyena/Hyena.Collections/Selection.cs
@@ -53,14 +53,26 @@ namespace Hyena.Collections
         private int max_index;
         private int first_selected_index;
         private int focused_row_index = -1;
+        private int focused_column_index = 0;
         
         public event EventHandler Changed;
         public event EventHandler FocusRowChanged;
+        public event EventHandler FocusColumnChanged;
         
         public Selection ()
         {
         }
 
+        public int FocusedColumnIndex {
+            get { return focused_column_index; }
+            set {
+                    focused_column_index = value;
+                    EventHandler handler = FocusColumnChanged;
+                    if (handler != null)
+                        handler (this, EventArgs.Empty);
+                }
+        }
+
         public int FocusedRowIndex {
             get { return focused_row_index; }
             set {



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