[banshee] [ConnectedSeekSlider] Allow adjusting spacing



commit a35801bb01a1ee11ac021e3de99a15540c4b7be0
Author: Aaron Bockover <abockover novell com>
Date:   Sun May 2 16:16:56 2010 -0400

    [ConnectedSeekSlider] Allow adjusting spacing
    
    Expose a Spacing property that sets the spacing between the slider and
    the stream position label.

 .../Banshee.Gui.Widgets/ConnectedSeekSlider.cs     |   10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)
---
diff --git a/src/Core/Banshee.ThickClient/Banshee.Gui.Widgets/ConnectedSeekSlider.cs b/src/Core/Banshee.ThickClient/Banshee.Gui.Widgets/ConnectedSeekSlider.cs
index b30fad7..d0a9766 100644
--- a/src/Core/Banshee.ThickClient/Banshee.Gui.Widgets/ConnectedSeekSlider.cs
+++ b/src/Core/Banshee.ThickClient/Banshee.Gui.Widgets/ConnectedSeekSlider.cs
@@ -44,12 +44,13 @@ namespace Banshee.Gui.Widgets
     {
         private SeekSlider seek_slider;
         private StreamPositionLabel stream_position_label;
+        private Box box;
 
         public ConnectedSeekSlider () : this (SeekSliderLayout.Vertical)
         {
         }
 
-        public ConnectedSeekSlider (SeekSliderLayout layout) : base (0.0f, 0.0f, 1.0f, 1.0f)
+        public ConnectedSeekSlider (SeekSliderLayout layout) : base (0.5f, 0.5f, 1.0f, 0.0f)
         {
             RightPadding = 10;
             LeftPadding = 10;
@@ -89,13 +90,16 @@ namespace Banshee.Gui.Widgets
             get { return seek_slider; }
         }
 
+        public int Spacing {
+            get { return box.Spacing; }
+            set { box.Spacing = value; }
+        }
+
         private void BuildSeekSlider (SeekSliderLayout layout)
         {
             seek_slider = new SeekSlider ();
             stream_position_label = new StreamPositionLabel (seek_slider);
 
-            Box box;
-
             if (layout == SeekSliderLayout.Horizontal) {
                 box = new HBox ();
                 box.Spacing = 5;



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