[gimp] app: rename gimp_image_get_profile() to _get_color_profile()



commit e06a620d1127894734623f45a29d8ce3289f5615
Author: Michael Natterer <mitch gimp org>
Date:   Sat May 30 00:46:33 2015 +0200

    app: rename gimp_image_get_profile() to _get_color_profile()

 app/core/gimpimage-profile.c         |    4 ++--
 app/core/gimpimage-profile.h         |    2 +-
 app/core/gimpimage.c                 |    2 +-
 app/display/gimpdisplayshell-title.c |    3 ++-
 app/widgets/gimpimageprofileview.c   |    2 +-
 5 files changed, 7 insertions(+), 6 deletions(-)
---
diff --git a/app/core/gimpimage-profile.c b/app/core/gimpimage-profile.c
index 598b61b..1bb002c 100644
--- a/app/core/gimpimage-profile.c
+++ b/app/core/gimpimage-profile.c
@@ -132,8 +132,8 @@ gimp_image_set_icc_profile (GimpImage          *image,
 }
 
 GimpColorProfile
-gimp_image_get_profile (GimpImage  *image,
-                        GError    **error)
+gimp_image_get_color_profile (GimpImage  *image,
+                              GError    **error)
 {
   const GimpParasite *parasite;
   GimpColorProfile   *profile = NULL;
diff --git a/app/core/gimpimage-profile.h b/app/core/gimpimage-profile.h
index 48e93af..1c9355f 100644
--- a/app/core/gimpimage-profile.h
+++ b/app/core/gimpimage-profile.h
@@ -29,7 +29,7 @@ const GimpParasite * gimp_image_get_icc_profile      (GimpImage           *image
 void                 gimp_image_set_icc_profile      (GimpImage           *image,
                                                       const GimpParasite  *icc_profile);
 
-GimpColorProfile     gimp_image_get_profile          (GimpImage           *image,
+GimpColorProfile     gimp_image_get_color_profile    (GimpImage           *image,
                                                       GError             **error);
 
 
diff --git a/app/core/gimpimage.c b/app/core/gimpimage.c
index 6a27c56..508c0ef 100644
--- a/app/core/gimpimage.c
+++ b/app/core/gimpimage.c
@@ -1391,7 +1391,7 @@ gimp_image_color_managed_get_color_profile (GimpColorManaged *managed)
   GimpImage        *image = GIMP_IMAGE (managed);
   GimpColorProfile  profile;
 
-  profile = gimp_image_get_profile (image, NULL);
+  profile = gimp_image_get_color_profile (image, NULL);
 
   if (! profile)
     {
diff --git a/app/display/gimpdisplayshell-title.c b/app/display/gimpdisplayshell-title.c
index 653d17c..f0598d1 100644
--- a/app/display/gimpdisplayshell-title.c
+++ b/app/display/gimpdisplayshell-title.c
@@ -456,7 +456,8 @@ gimp_display_shell_format_title (GimpDisplayShell *shell,
 
             case 'o': /* image's color profile name */
               {
-                GimpColorProfile *profile = gimp_image_get_profile (image, NULL);
+                GimpColorProfile *profile = gimp_image_get_color_profile (image,
+                                                                          NULL);
 
                 if (! profile)
                   profile = gimp_lcms_create_srgb_profile ();
diff --git a/app/widgets/gimpimageprofileview.c b/app/widgets/gimpimageprofileview.c
index 6d5b5c2..da2dad0 100644
--- a/app/widgets/gimpimageprofileview.c
+++ b/app/widgets/gimpimageprofileview.c
@@ -107,7 +107,7 @@ gimp_image_profile_view_update (GimpImageParasiteView *view)
 
   image = gimp_image_parasite_view_get_image (view);
 
-  profile = gimp_image_get_profile (image, &error);
+  profile = gimp_image_get_color_profile (image, &error);
 
   if (! profile && error)
     {


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