[gimp] libgimpwidgets: make pick button quartz work on macOS < 10.12



commit 0e9e167da8626766aeafcf9172b038caacd6a1ba
Author: Kristian Rietveld <kris loopnest org>
Date:   Mon Mar 26 22:49:27 2018 +0200

    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.

 libgimpwidgets/gimppickbutton-quartz.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libgimpwidgets/gimppickbutton-quartz.c b/libgimpwidgets/gimppickbutton-quartz.c
index b101c40..1357d08 100644
--- a/libgimpwidgets/gimppickbutton-quartz.c
+++ b/libgimpwidgets/gimppickbutton-quartz.c
@@ -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));


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]