Fix OSX 10.4 compiler errors.
* nsmenu.m (x_activate_menubar): Check for OSX >= 10.5 (trackingNotification:): Call ns_check_menu_open only for OSX >= 10.5.
This commit is contained in:
parent
c6b7ccaaf6
commit
a5bd5abb64
2 changed files with 9 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
2013-08-13 Jan Djärv <jan.h.d@swipnet.se>
|
||||
|
||||
* nsmenu.m (x_activate_menubar): Check for OSX >= 10.5
|
||||
(trackingNotification:): Call ns_check_menu_open only for OSX >= 10.5.
|
||||
|
||||
2013-08-13 Lars Magne Ingebrigtsen <larsi@gnus.org>
|
||||
|
||||
* image.c (imagemagick_filename_hint): Check for errors in the
|
||||
|
|
|
@ -504,9 +504,11 @@
|
|||
x_activate_menubar (struct frame *f)
|
||||
{
|
||||
#ifdef NS_IMPL_COCOA
|
||||
#if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_5
|
||||
ns_update_menubar (f, true, nil);
|
||||
ns_check_pending_open_menu ();
|
||||
#endif
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
|
@ -563,7 +565,9 @@ -(void)trackingNotification:(NSNotification *)notification
|
|||
/* Update menu in menuNeedsUpdate only while tracking menus. */
|
||||
trackingMenu = ([notification name] == NSMenuDidBeginTrackingNotification
|
||||
? 1 : 0);
|
||||
#if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_5
|
||||
if (! trackingMenu) ns_check_menu_open (nil);
|
||||
#endif
|
||||
}
|
||||
|
||||
#if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_5
|
||||
|
|
Loading…
Add table
Reference in a new issue