mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 02:30:37 +00:00
* Source/NSMenuItemCell.m: encode menu item in encodeWithCoder:
method. * Source/NSMenu.m: Add code to handle NSNoAutoenable * Source/NSPopUpButtonCell.m: Decode/encode selected index * Source/NSPrintInfo.m: Set orientation after the page size is known, since it has no effect when done earlier. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27568 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
2d97996e15
commit
864092095d
5 changed files with 62 additions and 16 deletions
|
@ -1408,7 +1408,20 @@ static BOOL menuBarVisible = YES;
|
|||
|
||||
if ([aDecoder allowsKeyedCoding])
|
||||
{
|
||||
dAuto = YES;
|
||||
//
|
||||
// NSNoAutoenable is present when the "Autoenable" option is NOT checked.
|
||||
// NO = Autoenable menus, YES = Don't auto enable menus. We, therefore,
|
||||
// have to invert the values of this flag in order to get the value of
|
||||
// dAuto.
|
||||
//
|
||||
if ([aDecoder containsValueForKey: @"NSNoAutoenable"])
|
||||
{
|
||||
dAuto = ([aDecoder decodeBoolForKey: @"NSNoAutoenable"] == NO) ? YES : NO;
|
||||
}
|
||||
else
|
||||
{
|
||||
dAuto = NO;
|
||||
}
|
||||
dTitle = [aDecoder decodeObjectForKey: @"NSTitle"];
|
||||
dItems = [aDecoder decodeObjectForKey: @"NSMenuItems"];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue