mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 20:00:38 +00:00
It looks like GNUstep backend is not yet installed (#263)
This commit is contained in:
parent
d0db2dd2ee
commit
2ebf167e6f
7 changed files with 219 additions and 19 deletions
|
@ -650,7 +650,7 @@ static Class imageClass;
|
|||
NSString *action;
|
||||
NSString *key;
|
||||
BOOL isSeparator = NO;
|
||||
int keyMask;
|
||||
NSNumber *keyMask;
|
||||
|
||||
if ([aDecoder containsValueForKey: @"NSIsSeparator"])
|
||||
{
|
||||
|
@ -703,10 +703,18 @@ static Class imageClass;
|
|||
[self setSubmenu: submenu];
|
||||
}
|
||||
|
||||
// Set the key mask regardless of whether it is present;
|
||||
// i.e. set it to 0 if it is not present in the nib.
|
||||
keyMask = [aDecoder decodeIntForKey: @"NSKeyEquivModMask"];
|
||||
[self setKeyEquivalentModifierMask: keyMask];
|
||||
// Set the key mask when it is present; or default to NSCommandKeyMask
|
||||
// when not specified
|
||||
keyMask = (NSNumber*)[aDecoder decodeObjectForKey: @"NSKeyEquivModMask"];
|
||||
|
||||
if (keyMask != nil)
|
||||
{
|
||||
[self setKeyEquivalentModifierMask: [keyMask intValue]];
|
||||
}
|
||||
else
|
||||
{
|
||||
[self setKeyEquivalentModifierMask: NSCommandKeyMask];
|
||||
}
|
||||
|
||||
if ([aDecoder containsValueForKey: @"NSMnemonicLoc"])
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue