mirror of https://github.com/GNOME/gimp.git
libgimpwidgets: make pick button quartz work on macOS < 10.12
The symbol CGColorSpaceCopyICCData() is only available on macOS 10.12 and higher. We want GIMP to run from 10.9 onwards, so use the older symbol CGColorSpaceCopyICCProfile() even though this one is deprecated.
This commit is contained in:
parent
b2d40eb994
commit
0e9e167da8
|
@ -189,7 +189,7 @@
|
|||
{
|
||||
CFDataRef icc_data = NULL;
|
||||
|
||||
icc_data = CGColorSpaceCopyICCData (color_space);
|
||||
icc_data = CGColorSpaceCopyICCProfile (color_space);
|
||||
if (icc_data)
|
||||
{
|
||||
UInt8 *buffer = g_malloc (CFDataGetLength (icc_data));
|
||||
|
|
Loading…
Reference in New Issue