Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
80b20192
Commit
80b20192
authored
Oct 12, 2014
by
Paul Eggert
Browse files
* nsmenu.m (clear): Assume OS X 10.6 or later.
parent
b73d3f58
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
src/ChangeLog
src/ChangeLog
+4
-0
src/nsmenu.m
src/nsmenu.m
+1
-3
No files found.
src/ChangeLog
View file @
80b20192
2014-10-12 Paul Eggert <eggert@cs.ucla.edu>
* nsmenu.m (clear): Assume OS X 10.6 or later.
2014-10-12 Jan Djärv <jan.h.d@swipnet.se>
2014-10-12 Jan Djärv <jan.h.d@swipnet.se>
* unexmacosx.c: Remove include ppc/reloc.h.
* unexmacosx.c: Remove include ppc/reloc.h.
...
...
src/nsmenu.m
View file @
80b20192
...
@@ -693,9 +693,7 @@ -(void)clear
...
@@ -693,9 +693,7 @@ -(void)clear
{
{
NSMenuItem
*
item
=
[
self
itemAtIndex
:
n
];
NSMenuItem
*
item
=
[
self
itemAtIndex
:
n
];
NSString
*
title
=
[
item
title
];
NSString
*
title
=
[
item
title
];
if
(([
title
length
]
==
0
/* OSX 10.5 */
if
([
ns_app_name
isEqualToString
:
title
]
||
[
ns_app_name
isEqualToString
:
title
]
/* from 10.6 on */
||
[
@"Apple"
isEqualToString
:
title
])
/* older */
&&
!
[
item
isSeparatorItem
])
&&
!
[
item
isSeparatorItem
])
continue
;
continue
;
[
self
removeItemAtIndex
:
n
];
[
self
removeItemAtIndex
:
n
];
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment