mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 20:01:11 +00:00
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:
parent
331aa92b2f
commit
0aaba869e3
2 changed files with 10 additions and 3 deletions
|
@ -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>
|
||||
|
||||
* Source/NSImage.m: _useFromFile: make extension checking case
|
||||
|
|
|
@ -612,7 +612,9 @@ static BOOL menuBarVisible = YES;
|
|||
{
|
||||
NSMenuView *menuRep;
|
||||
|
||||
[super init];
|
||||
self = [super init];
|
||||
if (!self)
|
||||
return nil;
|
||||
|
||||
// Keep the title.
|
||||
ASSIGN(_title, aTitle);
|
||||
|
@ -1567,11 +1569,11 @@ static BOOL menuBarVisible = YES;
|
|||
//
|
||||
if ([aDecoder containsValueForKey: @"NSNoAutoenable"])
|
||||
{
|
||||
dAuto = ([aDecoder decodeBoolForKey: @"NSNoAutoenable"] == NO) ? YES : NO;
|
||||
dAuto = ![aDecoder decodeBoolForKey: @"NSNoAutoenable"];
|
||||
}
|
||||
else
|
||||
{
|
||||
dAuto = NO;
|
||||
dAuto = YES;
|
||||
}
|
||||
dTitle = [aDecoder decodeObjectForKey: @"NSTitle"];
|
||||
dItems = [aDecoder decodeObjectForKey: @"NSMenuItems"];
|
||||
|
|
Loading…
Reference in a new issue