Use YES as default value for AutoenablesItems.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29312 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
fredkiefer 2010-01-19 08:34:24 +00:00
parent 7268a24443
commit 5bc41a34b0
2 changed files with 10 additions and 3 deletions

View file

@ -1,3 +1,8 @@
2010-01-19 Fred Kiefer <FredKiefer@gmx.de>
* Source/NSMenu.m (-initWithCoder:): Use YES as default value for
AutoenablesItems.
2010-01-18 Riccardo Mottola <rmottola@users.sf.net> 2010-01-18 Riccardo Mottola <rmottola@users.sf.net>
* Source/NSImage.m: _useFromFile: make extension checking case * Source/NSImage.m: _useFromFile: make extension checking case

View file

@ -612,7 +612,9 @@ static BOOL menuBarVisible = YES;
{ {
NSMenuView *menuRep; NSMenuView *menuRep;
[super init]; self = [super init];
if (!self)
return nil;
// Keep the title. // Keep the title.
ASSIGN(_title, aTitle); ASSIGN(_title, aTitle);
@ -1567,11 +1569,11 @@ static BOOL menuBarVisible = YES;
// //
if ([aDecoder containsValueForKey: @"NSNoAutoenable"]) if ([aDecoder containsValueForKey: @"NSNoAutoenable"])
{ {
dAuto = ([aDecoder decodeBoolForKey: @"NSNoAutoenable"] == NO) ? YES : NO; dAuto = ![aDecoder decodeBoolForKey: @"NSNoAutoenable"];
} }
else else
{ {
dAuto = NO; dAuto = YES;
} }
dTitle = [aDecoder decodeObjectForKey: @"NSTitle"]; dTitle = [aDecoder decodeObjectForKey: @"NSTitle"];
dItems = [aDecoder decodeObjectForKey: @"NSMenuItems"]; dItems = [aDecoder decodeObjectForKey: @"NSMenuItems"];