diff options
| author | Alan Third | 2016-07-07 20:42:11 +0100 |
|---|---|---|
| committer | Alan Third | 2016-07-07 20:48:35 +0100 |
| commit | 5508f06f3283b4129cd70340a58ba608cc810d4e (patch) | |
| tree | d0968298b39e819e6364b2032a4a6a5bf21b296f /src/nsmenu.m | |
| parent | 42ac8f5723a6a1e70cca39d08c222f595828d34d (diff) | |
| download | emacs-5508f06f3283b4129cd70340a58ba608cc810d4e.tar.gz emacs-5508f06f3283b4129cd70340a58ba608cc810d4e.zip | |
Fix some deprecated functions
* src/nsterm.m (firstRectForCharacterRange): In OS X >10.6 replace
convertBaseToScreen with convertRectToScreen.
* src/nsmenu.m (ns_update_menubar): Remove attachedMenu, deprecated in
OS X 10.2, and always seems to return nil.
Diffstat (limited to 'src/nsmenu.m')
| -rw-r--r-- | src/nsmenu.m | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/nsmenu.m b/src/nsmenu.m index 7d340e8ec83..10dfe8aac13 100644 --- a/src/nsmenu.m +++ b/src/nsmenu.m | |||
| @@ -136,12 +136,6 @@ ns_update_menubar (struct frame *f, bool deep_p, EmacsMenu *submenu) | |||
| 136 | menu = [[EmacsMenu alloc] initWithTitle: ns_app_name]; | 136 | menu = [[EmacsMenu alloc] initWithTitle: ns_app_name]; |
| 137 | needsSet = YES; | 137 | needsSet = YES; |
| 138 | } | 138 | } |
| 139 | else | ||
| 140 | { /* close up anything on there */ | ||
| 141 | id attMenu = [menu attachedMenu]; | ||
| 142 | if (attMenu != nil) | ||
| 143 | [attMenu close]; | ||
| 144 | } | ||
| 145 | 139 | ||
| 146 | #if NSMENUPROFILE | 140 | #if NSMENUPROFILE |
| 147 | ftime (&tb); | 141 | ftime (&tb); |