[banshee/gtk3] Replace all remaining references to StyleSet with StyleUpdated



commit 38a7da5fafafbd4a6247119c983c132d9871794b
Author: Bertrand Lorentz <bertrand lorentz gmail com>
Date:   Sun Jul 31 16:14:00 2011 +0200

    Replace all remaining references to StyleSet with StyleUpdated

 .../Banshee.Gui.Widgets/TitledList.cs              |    2 +-
 .../Banshee.Gui.Widgets/TrackInfoDisplay.cs        |    4 ++--
 .../Banshee.Gui.Widgets/UserJobTile.cs             |    4 ++--
 .../Banshee.Gui/GtkElementsService.cs              |    6 +++---
 .../Banshee.Library.Gui/ImportDialog.cs            |    4 ++--
 .../Banshee.Sources.Gui/SourceView.cs              |    4 ++--
 .../Banshee.Widgets/HoverImageButton.cs            |    2 +-
 .../Banshee.Widgets/Banshee.Widgets/SearchEntry.cs |    4 ++--
 .../Banshee.Widgets/StreamPositionLabel.cs         |    4 ++--
 .../Banshee.Widgets/VolumeButton.cs                |    4 ++--
 src/Dap/Banshee.Dap/Banshee.Dap.Gui/DapInfoBar.cs  |    4 ++--
 .../RecommendationPane.cs                          |    4 ++--
 12 files changed, 23 insertions(+), 23 deletions(-)
---
diff --git a/src/Core/Banshee.ThickClient/Banshee.Gui.Widgets/TitledList.cs b/src/Core/Banshee.ThickClient/Banshee.Gui.Widgets/TitledList.cs
index eaee423..1c02946 100644
--- a/src/Core/Banshee.ThickClient/Banshee.Gui.Widgets/TitledList.cs
+++ b/src/Core/Banshee.ThickClient/Banshee.Gui.Widgets/TitledList.cs
@@ -60,7 +60,7 @@ namespace Banshee.Gui.Widgets
             PackStart (title, false, false, 0);
             title.Show ();
 
-            StyleSet += delegate {
+            StyleUpdated += delegate {
                 title.OverrideBackgroundColor (StateFlags.Normal, StyleContext.GetBackgroundColor (StateFlags.Normal));
                 title.OverrideColor (StateFlags.Normal, StyleContext.GetColor (StateFlags.Normal));
             };
diff --git a/src/Core/Banshee.ThickClient/Banshee.Gui.Widgets/TrackInfoDisplay.cs b/src/Core/Banshee.ThickClient/Banshee.Gui.Widgets/TrackInfoDisplay.cs
index 055051f..c585c98 100644
--- a/src/Core/Banshee.ThickClient/Banshee.Gui.Widgets/TrackInfoDisplay.cs
+++ b/src/Core/Banshee.ThickClient/Banshee.Gui.Widgets/TrackInfoDisplay.cs
@@ -198,9 +198,9 @@ namespace Banshee.Gui.Widgets
             }
         }
 
-        protected override void OnStyleSet (Style previous)
+        protected override void OnStyleUpdated ()
         {
-            base.OnStyleSet (previous);
+            base.OnStyleUpdated ();
 
             text_color = CairoExtensions.GdkRGBAToCairoColor (StyleContext.GetColor (StateFlags.Normal));
             BackgroundColor = CairoExtensions.GdkRGBAToCairoColor (StyleContext.GetBackgroundColor (StateFlags.Normal));
diff --git a/src/Core/Banshee.ThickClient/Banshee.Gui.Widgets/UserJobTile.cs b/src/Core/Banshee.ThickClient/Banshee.Gui.Widgets/UserJobTile.cs
index e175d98..e3ff98d 100644
--- a/src/Core/Banshee.ThickClient/Banshee.Gui.Widgets/UserJobTile.cs
+++ b/src/Core/Banshee.ThickClient/Banshee.Gui.Widgets/UserJobTile.cs
@@ -115,9 +115,9 @@ namespace Banshee.Gui.Widgets
                 AttachOptions.Shrink | AttachOptions.Fill, 0, 0);
         }
 
-        protected override void OnStyleSet (Style style)
+        protected override void OnStyleUpdated ()
         {
-            base.OnStyleSet (style);
+            base.OnStyleUpdated ();
             UpdateIcons ();
         }
 
diff --git a/src/Core/Banshee.ThickClient/Banshee.Gui/GtkElementsService.cs b/src/Core/Banshee.ThickClient/Banshee.Gui/GtkElementsService.cs
index 4c076a4..4688080 100644
--- a/src/Core/Banshee.ThickClient/Banshee.Gui/GtkElementsService.cs
+++ b/src/Core/Banshee.ThickClient/Banshee.Gui/GtkElementsService.cs
@@ -53,7 +53,7 @@ namespace Banshee.Gui
         {
         }
 
-        private void OnStyleSet (object o, StyleSetArgs args)
+        private void OnStyleUpdated (object o, EventArgs args)
         {
             SourceInvalidateIconPixbuf (ServiceManager.SourceManager.Sources);
 
@@ -93,7 +93,7 @@ namespace Banshee.Gui
             get { return primary_window; }
             set {
                 if (primary_window != null) {
-                    primary_window.StyleSet -= OnStyleSet;
+                    primary_window.StyleUpdated -= OnStyleUpdated;
                     primary_window.Realized -= OnPrimaryWindowRealized;
                 }
 
@@ -102,7 +102,7 @@ namespace Banshee.Gui
                 if (primary_window != null) {
                     property_store.Set<BaseClientWindow> ("PrimaryWindow", primary_window);
 
-                    primary_window.StyleSet += OnStyleSet;
+                    primary_window.StyleUpdated += OnStyleUpdated;
                     primary_window.Realized += OnPrimaryWindowRealized;
                 } else {
                     property_store.Remove ("PrimaryWindow");
diff --git a/src/Core/Banshee.ThickClient/Banshee.Library.Gui/ImportDialog.cs b/src/Core/Banshee.ThickClient/Banshee.Library.Gui/ImportDialog.cs
index 0de0d6d..de3f14e 100644
--- a/src/Core/Banshee.ThickClient/Banshee.Library.Gui/ImportDialog.cs
+++ b/src/Core/Banshee.ThickClient/Banshee.Library.Gui/ImportDialog.cs
@@ -118,9 +118,9 @@ namespace Banshee.Library.Gui
             ServiceManager.SourceManager.SourceUpdated += OnSourceUpdated;
         }
 
-        protected override void OnStyleSet (Style previous_style)
+        protected override void OnStyleUpdated ()
         {
-            base.OnStyleSet (previous_style);
+            base.OnStyleUpdated ();
             UpdateIcons ();
         }
 
diff --git a/src/Core/Banshee.ThickClient/Banshee.Sources.Gui/SourceView.cs b/src/Core/Banshee.ThickClient/Banshee.Sources.Gui/SourceView.cs
index 1132943..5652092 100644
--- a/src/Core/Banshee.ThickClient/Banshee.Sources.Gui/SourceView.cs
+++ b/src/Core/Banshee.ThickClient/Banshee.Sources.Gui/SourceView.cs
@@ -203,9 +203,9 @@ namespace Banshee.Sources.Gui
 
 #region Gtk.Widget Overrides
 
-        protected override void OnStyleSet (Style old_style)
+        protected override void OnStyleUpdated ()
         {
-            base.OnStyleSet (old_style);
+            base.OnStyleUpdated ();
             theme = Hyena.Gui.Theming.ThemeEngine.CreateTheme (this);
 
             var light_text = Hyena.Gui.Theming.GtkTheme.GetCairoTextMidColor (this);
diff --git a/src/Core/Banshee.Widgets/Banshee.Widgets/HoverImageButton.cs b/src/Core/Banshee.Widgets/Banshee.Widgets/HoverImageButton.cs
index 98dcf3a..89ad244 100644
--- a/src/Core/Banshee.Widgets/Banshee.Widgets/HoverImageButton.cs
+++ b/src/Core/Banshee.Widgets/Banshee.Widgets/HoverImageButton.cs
@@ -81,7 +81,7 @@ namespace Banshee.Widgets
         }
 
         private bool changing_style = false;
-        protected override void OnStyleSet(Style previous_style)
+        protected override void OnStyleUpdated()
         {
             if(changing_style) {
                 return;
diff --git a/src/Core/Banshee.Widgets/Banshee.Widgets/SearchEntry.cs b/src/Core/Banshee.Widgets/Banshee.Widgets/SearchEntry.cs
index 651d74c..4cf0d99 100644
--- a/src/Core/Banshee.Widgets/Banshee.Widgets/SearchEntry.cs
+++ b/src/Core/Banshee.Widgets/Banshee.Widgets/SearchEntry.cs
@@ -101,7 +101,7 @@ namespace Banshee.Widgets
             Add(box);
             box.ShowAll();
 
-            entry.StyleSet += OnInnerEntryStyleSet;
+            entry.StyleUpdated += OnInnerEntryStyleUpdated;
             entry.StateChanged += OnInnerEntryStateChanged;
             entry.FocusInEvent += OnInnerEntryFocusEvent;
             entry.FocusOutEvent += OnInnerEntryFocusEvent;
@@ -213,7 +213,7 @@ namespace Banshee.Widgets
             box.BorderWidth = (uint)entry.StyleContext.GetBorder (StateFlags).Left;
         }
 
-        private void OnInnerEntryStyleSet (object o, StyleSetArgs args)
+        private void OnInnerEntryStyleUpdated (object o, EventArgs args)
         {
             UpdateStyle ();
         }
diff --git a/src/Core/Banshee.Widgets/Banshee.Widgets/StreamPositionLabel.cs b/src/Core/Banshee.Widgets/Banshee.Widgets/StreamPositionLabel.cs
index 4ac9d16..17a8743 100644
--- a/src/Core/Banshee.Widgets/Banshee.Widgets/StreamPositionLabel.cs
+++ b/src/Core/Banshee.Widgets/Banshee.Widgets/StreamPositionLabel.cs
@@ -77,9 +77,9 @@ namespace Banshee.Widgets
 
         private bool first_style_set = false;
 
-        protected override void OnStyleSet (Style old_style)
+        protected override void OnStyleUpdated ()
         {
-            base.OnStyleSet (old_style);
+            base.OnStyleUpdated ();
 
             if (first_style_set) {
                 BuildLayouts ();
diff --git a/src/Core/Banshee.Widgets/Banshee.Widgets/VolumeButton.cs b/src/Core/Banshee.Widgets/Banshee.Widgets/VolumeButton.cs
index f73a848..f69e14b 100644
--- a/src/Core/Banshee.Widgets/Banshee.Widgets/VolumeButton.cs
+++ b/src/Core/Banshee.Widgets/Banshee.Widgets/VolumeButton.cs
@@ -369,9 +369,9 @@ namespace Bacon
             return true;
         }
 
-        protected override void OnStyleSet(Style previous)
+        protected override void OnStyleUpdated()
         {
-            base.OnStyleSet(previous);
+            base.OnStyleUpdated();
             LoadIcons();
         }
 
diff --git a/src/Dap/Banshee.Dap/Banshee.Dap.Gui/DapInfoBar.cs b/src/Dap/Banshee.Dap/Banshee.Dap.Gui/DapInfoBar.cs
index 35adddc..65416e7 100644
--- a/src/Dap/Banshee.Dap/Banshee.Dap.Gui/DapInfoBar.cs
+++ b/src/Dap/Banshee.Dap/Banshee.Dap.Gui/DapInfoBar.cs
@@ -112,9 +112,9 @@ namespace Banshee.Dap.Gui
             });
         }
 
-        protected override void OnStyleSet (Style previous_style)
+        protected override void OnStyleUpdated ()
         {
-            base.OnStyleSet (previous_style);
+            base.OnStyleUpdated ();
             SetBackground ();
         }
 
diff --git a/src/Extensions/Banshee.Lastfm/Banshee.Lastfm.Recommendations/RecommendationPane.cs b/src/Extensions/Banshee.Lastfm/Banshee.Lastfm.Recommendations/RecommendationPane.cs
index 883d894..ec8d5dc 100644
--- a/src/Extensions/Banshee.Lastfm/Banshee.Lastfm.Recommendations/RecommendationPane.cs
+++ b/src/Extensions/Banshee.Lastfm/Banshee.Lastfm.Recommendations/RecommendationPane.cs
@@ -226,9 +226,9 @@ namespace Banshee.Lastfm.Recommendations
             SetSizeRequest (-1, args.Allocation.Height + (Allocation.Height - args.Allocation.Height));
         }
 
-        protected override void OnStyleSet (Style previous_style)
+        protected override void OnStyleUpdated ()
         {
-            base.OnStyleSet (previous_style);
+            base.OnStyleUpdated ();
             similar_artists_view.OverrideBackgroundColor (StateFlags.Normal,
                                                           StyleContext.GetBackgroundColor (StateFlags.Normal));
         }



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