mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 18:50:48 +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
c970b157e4
commit
d1a9f60bcc
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>
|
2007-12-03 Fred Kiefer <FredKiefer@gmx.de>
|
||||||
|
|
||||||
* Source/NSView.m (-bitmapImageRepForCachingDisplayInRect:): Don't
|
* Source/NSView.m (-bitmapImageRepForCachingDisplayInRect:): Don't
|
||||||
|
|
|
@ -592,8 +592,7 @@ static Class imageClass;
|
||||||
}
|
}
|
||||||
if ([aDecoder containsValueForKey: @"NSState"])
|
if ([aDecoder containsValueForKey: @"NSState"])
|
||||||
{
|
{
|
||||||
int state = [aDecoder decodeIntForKey: @"NSState"];
|
_state = [aDecoder decodeIntForKey: @"NSState"];
|
||||||
[self setState: state];
|
|
||||||
}
|
}
|
||||||
if ([aDecoder containsValueForKey: @"NSIsDisabled"])
|
if ([aDecoder containsValueForKey: @"NSIsDisabled"])
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue