[hyena] Make Push/PopContext methods virtual
- From: Gabriel Burt <gburt src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [hyena] Make Push/PopContext methods virtual
- Date: Wed, 26 May 2010 02:42:59 +0000 (UTC)
commit a28f58247889b46e72d7b4b0943b8e7a3e1fe28f
Author: Aaron Bockover <abockover novell com>
Date: Fri Apr 9 20:18:13 2010 -0400
Make Push/PopContext methods virtual
src/Hyena.Gui/Hyena.Gui.Theming/Theme.cs | 11 +++++++----
1 files changed, 7 insertions(+), 4 deletions(-)
---
diff --git a/src/Hyena.Gui/Hyena.Gui.Theming/Theme.cs b/src/Hyena.Gui/Hyena.Gui.Theming/Theme.cs
index 5d093c1..05012d7 100644
--- a/src/Hyena.Gui/Hyena.Gui.Theming/Theme.cs
+++ b/src/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]