Commit 80b20192 authored by Paul Eggert's avatar Paul Eggert
Browse files

* nsmenu.m (clear): Assume OS X 10.6 or later.

parent b73d3f58
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.
......
...@@ -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];
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment