[banshee/a11y: 27/27] [a11y] More style fixes



commit 00677c6206b86843eca150293120fcea79c32fe4
Author: Gabriel Burt <gabriel burt gmail com>
Date:   Mon Oct 5 17:16:05 2009 -0700

    [a11y] More style fixes

 .../Hyena.Gui/Hyena.Gui.Theming/GtkTheme.cs        |    2 +-
 src/Libraries/Hyena/Hyena.Collections/Selection.cs |    9 +++++----
 2 files changed, 6 insertions(+), 5 deletions(-)
---
diff --git a/src/Libraries/Hyena.Gui/Hyena.Gui.Theming/GtkTheme.cs b/src/Libraries/Hyena.Gui/Hyena.Gui.Theming/GtkTheme.cs
index f54155b..7c70b46 100644
--- a/src/Libraries/Hyena.Gui/Hyena.Gui.Theming/GtkTheme.cs
+++ b/src/Libraries/Hyena.Gui/Hyena.Gui.Theming/GtkTheme.cs
@@ -151,7 +151,7 @@ namespace Hyena.Gui.Theming
 
         public override void DrawFrameBorderFocused (Cairo.Context cr, Gdk.Rectangle alloc)
         {
-            cr.LineWidth = BorderWidth*1.5;
+            cr.LineWidth = BorderWidth * 1.5;
             cr.Color = CairoExtensions.ColorShade (border_color, 0.8);
             double offset = (double)cr.LineWidth / 2.0;
             CairoExtensions.RoundedRectangle (cr, alloc.X + offset, alloc.Y + offset,
diff --git a/src/Libraries/Hyena/Hyena.Collections/Selection.cs b/src/Libraries/Hyena/Hyena.Collections/Selection.cs
index df21eb4..1b77df5 100644
--- a/src/Libraries/Hyena/Hyena.Collections/Selection.cs
+++ b/src/Libraries/Hyena/Hyena.Collections/Selection.cs
@@ -64,11 +64,12 @@ namespace Hyena.Collections
         public int FocusedIndex {
             get { return focused_index; }
             set {
-                    focused_index = value;
-                    EventHandler handler = FocusChanged;
-                    if (handler != null)
-                        handler (this, EventArgs.Empty);
+                focused_index = value;
+                var handler = FocusChanged;
+                if (handler != null) {
+                    handler (this, EventArgs.Empty);
                 }
+            }
         }
 
         protected virtual void OnChanged ()



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