mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 07:00:46 +00:00
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:
parent
10964ee37f
commit
3c16aeb873
1 changed files with 5 additions and 4 deletions
|
@ -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];
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue