From: Adrian Robert Date: Fri, 6 Mar 2009 19:06:45 +0000 (+0000) Subject: (EmacsMenu-addItemWithWidgetValue:): Don't add accelerator in parens under GNUstep. X-Git-Tag: emacs-pretest-23.0.92~317 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=84ee8aba37b4e3a3d75f03123d3ddb7243b7bb23;p=emacs.git (EmacsMenu-addItemWithWidgetValue:): Don't add accelerator in parens under GNUstep. --- 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) title = @"< ? >"; /* (get out in the open so we know about it) */ keyEq = [self parseKeyEquiv: wv->key]; +#ifdef NS_IMPL_COCOA + /* OS X just ignores modifier strings longer than one character */ if (keyEquivModMask == 0) title = [title stringByAppendingFormat: @" (%@)", keyEq]; +#endif item = [self addItemWithTitle: (NSString *)title action: @selector (menuDown:)