Tweak last change so that scrollers have cached info cleared

before any windows are redrawn.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27500 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2009-01-02 13:28:07 +00:00
parent 10964ee37f
commit 3c16aeb873

View file

@ -69,9 +69,10 @@ static float scrollerWidth = 18.0;
static const float buttonsOffset = 2; // buttonsWidth = sw - buttonsOffset
+ (void) _themeActivated: (NSNotification*)n
+ (void) _themeWillActivate: (NSNotification*)n
{
/* Clear cached information.
/* Clear cached information from the old theme ... will get info from
* the new theme as required.
*/
scrollerWidth = 0.0;
DESTROY(upCell);
@ -86,8 +87,8 @@ static const float buttonsOffset = 2; // buttonsWidth = sw - buttonsOffset
{
[self setVersion: 1];
[[NSNotificationCenter defaultCenter] addObserver: self
selector: @selector(_themeActivated:)
name: GSThemeDidActivateNotification
selector: @selector(_themeWillActivate:)
name: GSThemeWillActivateNotification
object: nil];
}
}