]> git.eshelyaron.com Git - emacs.git/commit
Fix some deprecation notices on macOS 10.14
authorAlan Third <alan@idiocy.org>
Tue, 2 Apr 2019 20:49:36 +0000 (21:49 +0100)
committerAlan Third <alan@idiocy.org>
Tue, 21 May 2019 19:57:33 +0000 (20:57 +0100)
commit9624f609493da7c08016ba00d6895bad0fe26a0e
tree766d6c8f60ad8e4d3053502de12634f960717e39
parentcb367c8e0d4a881acf8255e1ff6bdd6442efb538
Fix some deprecation notices on macOS 10.14

* src/nsimage.m ([EmacsImage setXBMColor:]): Replace colorSpaceName
code.
* src/nsmenu.m ([EmacsDialogPanel initWithContentRect:styleMask:]):
Remove reference to oneShot.
* src/nsterm.h (ns_enable_screen_updates): Remove function prototype.
(NSPasteboardTypeString):
(NSPasteboardTypeTabularText):
(NSControlStateValueOn):
(NSControlStateValueOff):
(NSBezelStyleRounded):
(NSPasteboardTypeURL): Define new names and replace all callers.
* src/nsterm.m ([EmacsColor colorUsingDefaultColorSpace]): Replace
calls to colorUsingColorSpaceName on macOS > 10.7.
([EmacsView performDragOperation:]): Add FIXME about deprecation.
(ns_disable_screen_updates):
(ns_enable_screen_updates): Remove functions and all callers.
(disable_screen_updates_count): Remove variable.
* src/macfont.m (macfont_draw): Use CGContext instead of graphicsPort
on macOS >= 10.10
src/macfont.m
src/nsimage.m
src/nsmenu.m
src/nsselect.m
src/nsterm.h
src/nsterm.m
src/xdisp.c