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:
Kristian Rietveld 2018-03-26 22:49:27 +02:00
parent b2d40eb994
commit 0e9e167da8
1 changed files with 1 additions and 1 deletions

View File

@ -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));