]> git.eshelyaron.com Git - emacs.git/commit
Fix nsmenu compilation under macOS 10.6
authorAlan Third <alan@idiocy.org>
Tue, 19 Apr 2022 04:05:17 +0000 (05:05 +0100)
committerAlan Third <alan@idiocy.org>
Mon, 25 Apr 2022 18:08:54 +0000 (19:08 +0100)
commit96ec2ac7d0bdb6b1193217b35f7d74d79b7c2033
tree4d31569fcccc31e449a72c8f021a9b2668b5e023
parent42366383c6327e731e286266665d1bb3d6ab1526
Fix nsmenu compilation under macOS 10.6

* src/nsmenu.m ([EmacsMenu fillWithWidgetValue:]): Replace modern
shorthand dictionary and array definitions.
* src/nsterm.h (NSTextAlignmentRight): Redefine if necessary.
* src/macfont.m (mac_font_create_preferred_family_for_attributes):
isOperatingSystemAtLeastVersion is new in macOS 10.10, so it's
probably wrong to use it to check whether we're below 10.9.
(mac_font_copy_default_descriptors_for_language):
(mac_font_copy_default_name_for_charset_and_languages): It seems these
functions are only used on macOS 10.8 and below.
* src/nsterm.m ([NSColor colorUsingDefaultColorSpace]): Use the
generic colorspace.
(ns_parent_window_rect):
(ns_frame_scale_factor):
([EmacsWindow setParentChildRelationships]): Fix macOS version stuff.

Co-authored-by: Po Lu <luangruo@yahoo.com>
src/macfont.m
src/nsmenu.m
src/nsterm.h
src/nsterm.m