[banshee/gtk3] VideoStreamTile: Port to the new theming API
- From: Bertrand Lorentz <blorentz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [banshee/gtk3] VideoStreamTile: Port to the new theming API
- Date: Mon, 18 Jul 2011 20:15:29 +0000 (UTC)
commit 32ecc045efe4fc772722e16e2e431a040321c5f8
Author: Bertrand Lorentz <bertrand lorentz gmail com>
Date: Mon Jul 18 22:11:34 2011 +0200
VideoStreamTile: Port to the new theming API
.../Banshee.YouTube.Gui/VideoStreamTile.cs | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/Extensions/Banshee.YouTube/Banshee.YouTube.Gui/VideoStreamTile.cs b/src/Extensions/Banshee.YouTube/Banshee.YouTube.Gui/VideoStreamTile.cs
index 2b8a069..39b89bf 100644
--- a/src/Extensions/Banshee.YouTube/Banshee.YouTube.Gui/VideoStreamTile.cs
+++ b/src/Extensions/Banshee.YouTube/Banshee.YouTube.Gui/VideoStreamTile.cs
@@ -102,10 +102,10 @@ namespace Banshee.YouTube.Gui
rating.AlwaysShowEmptyStars = true;
try {
- StyleSet += delegate {
- primary_label.ModifyFg (StateType.Normal, Style.Text (StateType.Normal));
- secondary_label.ModifyFg (StateType.Normal, Hyena.Gui.GtkUtilities.ColorBlend (
- Style.Foreground (StateType.Normal), Style.Background (StateType.Normal)));
+ StyleUpdated += delegate {
+ primary_label.OverrideColor (StateFlags.Normal, StyleContext.GetColor (StateFlags.Normal));
+ secondary_label.OverrideColor (StateFlags.Normal, Hyena.Gui.GtkUtilities.ColorBlend (
+ StyleContext.GetColor (StateFlags.Normal), StyleContext.GetBackgroundColor (StateFlags.Normal)));
};
} catch (Exception e) {
Log.DebugException (e);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]