[banshee/stable-1.6] [Theme] Make Push/PopContext methods virtual



commit b1f1094da811b93245e35f3dda19f1a9f6baf8d4
Author: Aaron Bockover <abockover novell com>
Date:   Fri Apr 9 20:18:13 2010 -0400

    [Theme] Make Push/PopContext methods virtual

 src/Libraries/Hyena.Gui/Hyena.Gui.Theming/Theme.cs |   11 +++++++----
 1 files changed, 7 insertions(+), 4 deletions(-)
---
diff --git a/src/Libraries/Hyena.Gui/Hyena.Gui.Theming/Theme.cs b/src/Libraries/Hyena.Gui/Hyena.Gui.Theming/Theme.cs
index 5d093c1..05012d7 100644
--- a/src/Libraries/Hyena.Gui/Hyena.Gui.Theming/Theme.cs
+++ b/src/Libraries/Hyena.Gui/Hyena.Gui.Theming/Theme.cs
@@ -52,12 +52,15 @@ namespace Hyena.Gui.Theming
             get { return colors; }
         }
 
+        public Widget Widget { get; private set; }
+
         public Theme (Widget widget) : this (widget, new GtkColors ())
         {
         }
 
         public Theme (Widget widget, GtkColors colors)
         {
+            this.Widget = widget;
             this.colors = colors;
             this.colors.Refreshed += delegate { OnColorsRefreshed (); };
             this.colors.Widget = widget;
@@ -212,26 +215,26 @@ namespace Hyena.Gui.Theming
 
 #region Contexts
 
-        public void PushContext ()
+        public virtual void PushContext ()
         {
             PushContext (new ThemeContext ());
         }
 
-        public void PushContext (ThemeContext context)
+        public virtual void PushContext (ThemeContext context)
         {
             lock (this) {
                 contexts.Push (context);
             }
         }
 
-        public ThemeContext PopContext ()
+        public virtual ThemeContext PopContext ()
         {
             lock (this) {
                 return contexts.Pop ();
             }
         }
 
-        public ThemeContext Context {
+        public virtual ThemeContext Context {
             get { lock (this) { return contexts.Peek (); } }
         }
 



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