aboutsummaryrefslogtreecommitdiffstats
path: root/src/nsmenu.m
diff options
context:
space:
mode:
authorAdrian Robert2009-03-06 19:06:45 +0000
committerAdrian Robert2009-03-06 19:06:45 +0000
commit84ee8aba37b4e3a3d75f03123d3ddb7243b7bb23 (patch)
tree6f77fabb1f806d9d4a1c08d626d5208cd0b2b051 /src/nsmenu.m
parentfe41ae9e008dffa0e7a7c44dea558b57b3178d9c (diff)
downloademacs-84ee8aba37b4e3a3d75f03123d3ddb7243b7bb23.tar.gz
emacs-84ee8aba37b4e3a3d75f03123d3ddb7243b7bb23.zip
(EmacsMenu-addItemWithWidgetValue:): Don't add accelerator in parens under GNUstep.
Diffstat (limited to 'src/nsmenu.m')
-rw-r--r--src/nsmenu.m3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/nsmenu.m b/src/nsmenu.m
index 636b71cf308..9a97492e751 100644
--- a/src/nsmenu.m
+++ b/src/nsmenu.m
@@ -636,8 +636,11 @@ name_is_separator (name)
636 title = @"< ? >"; /* (get out in the open so we know about it) */ 636 title = @"< ? >"; /* (get out in the open so we know about it) */
637 637
638 keyEq = [self parseKeyEquiv: wv->key]; 638 keyEq = [self parseKeyEquiv: wv->key];
639#ifdef NS_IMPL_COCOA
640 /* OS X just ignores modifier strings longer than one character */
639 if (keyEquivModMask == 0) 641 if (keyEquivModMask == 0)
640 title = [title stringByAppendingFormat: @" (%@)", keyEq]; 642 title = [title stringByAppendingFormat: @" (%@)", keyEq];
643#endif
641 644
642 item = [self addItemWithTitle: (NSString *)title 645 item = [self addItemWithTitle: (NSString *)title
643 action: @selector (menuDown:) 646 action: @selector (menuDown:)