[banshee/stable-1.6] [SourceView] fixed theme issues
- From: Aaron Bockover <abock src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [banshee/stable-1.6] [SourceView] fixed theme issues
- Date: Sun, 2 May 2010 21:31:29 +0000 (UTC)
commit b247e47d302017d11ac8068d749017553f349fff
Author: Aaron Bockover <abockover novell com>
Date: Sun May 2 16:19:24 2010 -0400
[SourceView] fixed theme issues
Create the Hyena GUI theme in OnStyleSet, not OnRealize, and also make a
DrawFrameBorder theme call after rendering contents
.../Banshee.Sources.Gui/SourceView.cs | 13 +++++++------
1 files changed, 7 insertions(+), 6 deletions(-)
---
diff --git a/src/Core/Banshee.ThickClient/Banshee.Sources.Gui/SourceView.cs b/src/Core/Banshee.ThickClient/Banshee.Sources.Gui/SourceView.cs
index d83adbd..8edbeb5 100644
--- a/src/Core/Banshee.ThickClient/Banshee.Sources.Gui/SourceView.cs
+++ b/src/Core/Banshee.ThickClient/Banshee.Sources.Gui/SourceView.cs
@@ -146,12 +146,10 @@ namespace Banshee.Sources.Gui
#region Gtk.Widget Overrides
- protected override void OnRealized ()
+ protected override void OnStyleSet (Style old_style)
{
- base.OnRealized ();
-
- theme = new GtkTheme (this);
- // theme.RefreshColors ();
+ base.OnStyleSet (old_style);
+ theme = Hyena.Gui.Theming.ThemeEngine.CreateTheme (this);
}
protected override bool OnButtonPressEvent (Gdk.EventButton press)
@@ -251,7 +249,10 @@ namespace Banshee.Sources.Gui
try {
cr = Gdk.CairoHelper.Create (evnt.Window);
- return base.OnExposeEvent (evnt);
+ base.OnExposeEvent (evnt);
+ theme.DrawFrameBorder (cr, new Gdk.Rectangle (0, 0,
+ Allocation.Width, Allocation.Height));
+ return true;
} finally {
CairoExtensions.DisposeContext (cr);
cr = null;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]