[banshee/gtk3: 6/8] [gtk3] Fix background and foreground color in tile



commit 7712685558efc83b79983ac830827075c90f6fc4
Author: Olivier Dufour <olivier duff gmail com>
Date:   Wed May 11 18:58:03 2011 +0200

    [gtk3] Fix background and foreground color in tile

 src/Core/Banshee.Widgets/Banshee.Widgets/Tile.cs |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/src/Core/Banshee.Widgets/Banshee.Widgets/Tile.cs b/src/Core/Banshee.Widgets/Banshee.Widgets/Tile.cs
index ffa38bc..76ab916 100644
--- a/src/Core/Banshee.Widgets/Banshee.Widgets/Tile.cs
+++ b/src/Core/Banshee.Widgets/Banshee.Widgets/Tile.cs
@@ -76,8 +76,10 @@ namespace Banshee.Widgets
 
             StyleSet += delegate {
                 PrimaryLabel.ModifyFg (StateType.Normal, Style.Text (StateType.Normal));
-                SecondaryLabel.ModifyFg (StateType.Normal, Hyena.Gui.GtkUtilities.ColorBlend (
-                    Style.Foreground (StateType.Normal), Style.Background (StateType.Normal)));
+                Gdk.RGBA rgba;
+                StyleContext.GetColor (StateFlags.Normal, rgba);
+                SecondaryLabel.OverrideColor (StateFlags.Normal, Hyena.Gui.GtkUtilities.ColorBlend (
+                    rgba, StyleContext.GetBackgroundColor (StateFlags.Normal)));
             };
 
             Relief = ReliefStyle.None;



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