[banshee] StreamPositionLabel: Remove useless EnsureStyle call



commit c7b281487b5ca7449715577ae0b70c553adf9775
Author: Christopher James Halse Rogers <chrishr src gnome org>
Date:   Fri Apr 8 18:57:26 2011 +1000

    StreamPositionLabel: Remove useless EnsureStyle call
    
    The GTK documentation says that a realized widget is guaranteed
    to have a Style, so since we check that the widget is realized
    this call is a no-op.
    
    Signed-off-by: Gabriel Burt <gabriel burt gmail com>

 .../Banshee.Widgets/StreamPositionLabel.cs         |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
---
diff --git a/src/Core/Banshee.Widgets/Banshee.Widgets/StreamPositionLabel.cs b/src/Core/Banshee.Widgets/Banshee.Widgets/StreamPositionLabel.cs
index a31a21c..48bd04f 100644
--- a/src/Core/Banshee.Widgets/Banshee.Widgets/StreamPositionLabel.cs
+++ b/src/Core/Banshee.Widgets/Banshee.Widgets/StreamPositionLabel.cs
@@ -95,8 +95,6 @@ namespace Banshee.Widgets
                 return;
             }
 
-            EnsureStyle ();
-
             int width, height;
             layout.GetPixelSize (out width, out height);
 



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