mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-06-04 09:00:42 +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
7268a24443
commit
5bc41a34b0
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>
|
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
|
||||||
|
|
|
@ -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"];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue