[banshee/a11y: 25/27] [a11y] Fix whitespace/indentation



commit 4ddaae57b90463ced33b9f988208c04a19c41515
Author: Gabriel Burt <gabriel burt gmail com>
Date:   Mon Oct 5 17:08:16 2009 -0700

    [a11y] Fix whitespace/indentation

 .../Hyena.Data.Gui/ListView/ListView_Header.cs     |   39 ++++++++++----------
 1 files changed, 20 insertions(+), 19 deletions(-)
---
diff --git a/src/Libraries/Hyena.Gui/Hyena.Data.Gui/ListView/ListView_Header.cs b/src/Libraries/Hyena.Gui/Hyena.Data.Gui/ListView/ListView_Header.cs
index 819585b..564bf08 100644
--- a/src/Libraries/Hyena.Gui/Hyena.Data.Gui/ListView/ListView_Header.cs
+++ b/src/Libraries/Hyena.Gui/Hyena.Data.Gui/ListView/ListView_Header.cs
@@ -245,32 +245,33 @@ namespace Hyena.Data.Gui
             UpdateAdjustments ();
             QueueDraw ();
         }
+
         protected virtual void OnColumnLeftClicked (Column clickedColumn)
         {
             if (Model is ISortable && clickedColumn is ISortableColumn) {
-                    ISortableColumn sort_column = clickedColumn as ISortableColumn;
-                    ISortable sortable = Model as ISortable;
+                ISortableColumn sort_column = clickedColumn as ISortableColumn;
+                ISortable sortable = Model as ISortable;
 
-                    // Change the sort-type with every click
-                    switch (sort_column.SortType) {
-                        case SortType.Ascending:    sort_column.SortType = SortType.Descending; break;
-                        case SortType.Descending:   sort_column.SortType = SortType.None; break;
-                        case SortType.None:         sort_column.SortType = SortType.Ascending; break;
-                    }
+                // Change the sort-type with every click
+                switch (sort_column.SortType) {
+                    case SortType.Ascending:    sort_column.SortType = SortType.Descending; break;
+                    case SortType.Descending:   sort_column.SortType = SortType.None; break;
+                    case SortType.None:         sort_column.SortType = SortType.Ascending; break;
+                }
 
-                    // If we're switching to a different column or we aren't reorderable and the type is None, sort Ascending
-                    if (sort_column != ColumnController.SortColumn || (!IsEverReorderable && sort_column.SortType == SortType.None)) {
-                        sort_column.SortType = SortType.Ascending;
-                    }
+                // If we're switching to a different column or we aren't reorderable and the type is None, sort Ascending
+                if (sort_column != ColumnController.SortColumn || (!IsEverReorderable && sort_column.SortType == SortType.None)) {
+                    sort_column.SortType = SortType.Ascending;
+                }
 
-                    sortable.Sort (sort_column);
-                    ColumnController.SortColumn = sort_column;
-                    IsReorderable = sortable.SortColumn == null || sortable.SortColumn.SortType == SortType.None;
+                sortable.Sort (sort_column);
+                ColumnController.SortColumn = sort_column;
+                IsReorderable = sortable.SortColumn == null || sortable.SortColumn.SortType == SortType.None;
 
-                    Model.Reload ();
-                    RecalculateColumnSizes ();
-                    RegenerateColumnCache ();
-                    InvalidateHeader ();
+                Model.Reload ();
+                RecalculateColumnSizes ();
+                RegenerateColumnCache ();
+                InvalidateHeader ();
             }
         }
         



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