diff options
Diffstat (limited to 'src/nsmenu.m')
| -rw-r--r-- | src/nsmenu.m | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/nsmenu.m b/src/nsmenu.m index 7d340e8ec83..f73c184dce7 100644 --- a/src/nsmenu.m +++ b/src/nsmenu.m | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* NeXT/Open/GNUstep and MacOSX Cocoa menu and toolbar module. | 1 | /* NeXT/Open/GNUstep and macOS Cocoa menu and toolbar module. |
| 2 | Copyright (C) 2007-2016 Free Software Foundation, Inc. | 2 | Copyright (C) 2007-2016 Free Software Foundation, Inc. |
| 3 | 3 | ||
| 4 | This file is part of GNU Emacs. | 4 | This file is part of GNU Emacs. |
| @@ -93,7 +93,7 @@ popup_activated (void) | |||
| 93 | /* -------------------------------------------------------------------------- | 93 | /* -------------------------------------------------------------------------- |
| 94 | Update menubar. Three cases: | 94 | Update menubar. Three cases: |
| 95 | 1) ! deep_p, submenu = nil: Fresh switch onto a frame -- either set up | 95 | 1) ! deep_p, submenu = nil: Fresh switch onto a frame -- either set up |
| 96 | just top-level menu strings (OS X), or goto case (2) (GNUstep). | 96 | just top-level menu strings (macOS), or goto case (2) (GNUstep). |
| 97 | 2) deep_p, submenu = nil: Recompute all submenus. | 97 | 2) deep_p, submenu = nil: Recompute all submenus. |
| 98 | 3) deep_p, submenu = non-nil: Update contents of a single submenu. | 98 | 3) deep_p, submenu = non-nil: Update contents of a single submenu. |
| 99 | -------------------------------------------------------------------------- */ | 99 | -------------------------------------------------------------------------- */ |
| @@ -584,7 +584,7 @@ x_activate_menubar (struct frame *f) | |||
| 584 | return; | 584 | return; |
| 585 | /*fprintf (stderr, "Updating menu '%s'\n", [[self title] UTF8String]); NSLog (@"%@\n", event); */ | 585 | /*fprintf (stderr, "Updating menu '%s'\n", [[self title] UTF8String]); NSLog (@"%@\n", event); */ |
| 586 | #ifdef NS_IMPL_GNUSTEP | 586 | #ifdef NS_IMPL_GNUSTEP |
| 587 | /* Don't know how to do this for anything other than OSX >= 10.5 | 587 | /* Don't know how to do this for anything other than Mac OS X 10.5 and later. |
| 588 | This is wrong, as it might run Lisp code in the event loop. */ | 588 | This is wrong, as it might run Lisp code in the event loop. */ |
| 589 | ns_update_menubar (frame, true, self); | 589 | ns_update_menubar (frame, true, self); |
| 590 | #endif | 590 | #endif |
| @@ -645,7 +645,7 @@ x_activate_menubar (struct frame *f) | |||
| 645 | 645 | ||
| 646 | keyEq = [self parseKeyEquiv: wv->key]; | 646 | keyEq = [self parseKeyEquiv: wv->key]; |
| 647 | #ifdef NS_IMPL_COCOA | 647 | #ifdef NS_IMPL_COCOA |
| 648 | /* OS X just ignores modifier strings longer than one character */ | 648 | /* macOS just ignores modifier strings longer than one character */ |
| 649 | if (keyEquivModMask == 0) | 649 | if (keyEquivModMask == 0) |
| 650 | title = [title stringByAppendingFormat: @" (%@)", keyEq]; | 650 | title = [title stringByAppendingFormat: @" (%@)", keyEq]; |
| 651 | #endif | 651 | #endif |
| @@ -1057,9 +1057,9 @@ update_frame_tool_bar (struct frame *f) | |||
| 1057 | /* Check if this is a separator. */ | 1057 | /* Check if this is a separator. */ |
| 1058 | if (EQ (TOOLPROP (TOOL_BAR_ITEM_TYPE), Qt)) | 1058 | if (EQ (TOOLPROP (TOOL_BAR_ITEM_TYPE), Qt)) |
| 1059 | { | 1059 | { |
| 1060 | /* Skip separators. Newer OSX don't show them, and on GNUstep they | 1060 | /* Skip separators. Newer macOS don't show them, and on |
| 1061 | are wide as a button, thus overflowing the toolbar most of | 1061 | GNUstep they are wide as a button, thus overflowing the |
| 1062 | the time. */ | 1062 | toolbar most of the time. */ |
| 1063 | continue; | 1063 | continue; |
| 1064 | } | 1064 | } |
| 1065 | 1065 | ||