diff options
author | Aaron Bockover <abockover@novell.com> | 2010-04-08 21:40:38 +0400 |
---|---|---|
committer | Aaron Bockover <abockover@novell.com> | 2010-04-08 21:40:38 +0400 |
commit | 4b8c2c8fa78079172a1ca112d34991c5c7bc23f5 (patch) | |
tree | cc6e85071014866113ca5bcd383125400694ab8e /main/src/core/MonoDevelop.Ide/MonoDevelop.Components | |
parent | 7f1bf782384c1e90086613c8afbd74de50041e74 (diff) |
2010-04-08 Aaron Bockover <abockover@novell.com>
* MonoDevelop.Components/SearchEntry.cs: Render the entry
background flat box style entry_bg to properly draw the
full entry (we were previously only drawing the shadow),
which fixes a rendering bug in some themes - fix ported
from Banshee
svn path=/trunk/monodevelop/; revision=155068
Diffstat (limited to 'main/src/core/MonoDevelop.Ide/MonoDevelop.Components')
-rw-r--r-- | main/src/core/MonoDevelop.Ide/MonoDevelop.Components/SearchEntry.cs | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/main/src/core/MonoDevelop.Ide/MonoDevelop.Components/SearchEntry.cs b/main/src/core/MonoDevelop.Ide/MonoDevelop.Components/SearchEntry.cs index 8dd727cdab..ff1e8d358a 100644 --- a/main/src/core/MonoDevelop.Ide/MonoDevelop.Components/SearchEntry.cs +++ b/main/src/core/MonoDevelop.Ide/MonoDevelop.Components/SearchEntry.cs @@ -5,7 +5,7 @@ // Aaron Bockover <abockover@novell.com> // Gabriel Burt <gburt@novell.com> // -// Copyright (C) 2007 Novell, Inc. +// Copyright 2007-2010 Novell, Inc. // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation files (the @@ -308,9 +308,11 @@ namespace MonoDevelop.Components protected override bool OnExposeEvent (Gdk.EventExpose evnt) { + Style.PaintFlatBox (entry.Style, GdkWindow, State, ShadowType.None, + evnt.Area, this, "entry_bg", 0, 0, Allocation.Width, Allocation.Height); PropagateExpose (Child, evnt); - Style.PaintShadow (entry.Style, GdkWindow, StateType.Normal, ShadowType.In, evnt.Area, entry, "entry", 0, 0, Allocation.Width, - Allocation.Height); + Style.PaintShadow (entry.Style, GdkWindow, StateType.Normal, ShadowType.In, + evnt.Area, entry, "entry", 0, 0, Allocation.Width, Allocation.Height); return true; } |