mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 20:01:11 +00:00
Set state directly when decoding,
otherwise the items gets into changesStatus mode. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@25674 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
b06abb1fc1
commit
3bb689ffbb
2 changed files with 6 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
|||
2007-12-03 Fred Kiefer <FredKiefer@gmx.de>
|
||||
|
||||
* Source/NSMenuItem.m (-initWithCoder:): Set state directly,
|
||||
otherwise the items gets into changesStatus mode.
|
||||
|
||||
2007-12-03 Fred Kiefer <FredKiefer@gmx.de>
|
||||
|
||||
* Source/NSView.m (-bitmapImageRepForCachingDisplayInRect:): Don't
|
||||
|
|
|
@ -592,8 +592,7 @@ static Class imageClass;
|
|||
}
|
||||
if ([aDecoder containsValueForKey: @"NSState"])
|
||||
{
|
||||
int state = [aDecoder decodeIntForKey: @"NSState"];
|
||||
[self setState: state];
|
||||
_state = [aDecoder decodeIntForKey: @"NSState"];
|
||||
}
|
||||
if ([aDecoder containsValueForKey: @"NSIsDisabled"])
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue