libgimpcolor: rename the gimp_lcms_*() functions to gimp_color_profile_*()
because it doesn't make sense to call the typedef GimpColorProfile but the function namespace gimp_lcms_*().
This commit is contained in:
@ -391,7 +391,7 @@ gimp_widget_get_color_profile (GtkWidget *widget)
|
||||
0, 64 * 1024 * 1024, FALSE,
|
||||
&type, &format, &nitems, &data) && nitems > 0)
|
||||
{
|
||||
profile = gimp_lcms_profile_open_from_data (data, nitems, NULL);
|
||||
profile = gimp_color_profile_open_from_data (data, nitems, NULL);
|
||||
g_free (data);
|
||||
}
|
||||
|
||||
@ -421,9 +421,9 @@ gimp_widget_get_color_profile (GtkWidget *widget)
|
||||
CFDataGetBytes (data, CFRangeMake (0, CFDataGetLength (data)),
|
||||
buffer);
|
||||
|
||||
profile = gimp_lcms_profile_open_from_data (data,
|
||||
CFDataGetLength (data),
|
||||
NULL);
|
||||
profile = gimp_color_profile_open_from_data (data,
|
||||
CFDataGetLength (data),
|
||||
NULL);
|
||||
|
||||
g_free (buffer);
|
||||
CFRelease (data);
|
||||
@ -446,7 +446,7 @@ gimp_widget_get_color_profile (GtkWidget *widget)
|
||||
{
|
||||
GFile *file = g_file_new_for_path (path);
|
||||
|
||||
profile = gimp_lcms_profile_open_from_file (file, NULL);
|
||||
profile = gimp_color_profile_open_from_file (file, NULL);
|
||||
g_object_unref (file);
|
||||
}
|
||||
|
||||
@ -472,7 +472,7 @@ get_display_profile (GtkWidget *widget,
|
||||
profile = gimp_color_config_get_display_profile (config, NULL);
|
||||
|
||||
if (! profile)
|
||||
profile = gimp_lcms_create_srgb_profile ();
|
||||
profile = gimp_color_profile_new_srgb ();
|
||||
|
||||
return profile;
|
||||
}
|
||||
@ -513,8 +513,8 @@ gimp_widget_get_color_transform (GtkWidget *widget,
|
||||
break;
|
||||
}
|
||||
|
||||
*src_format = gimp_lcms_get_format (*src_format, &lcms_src_format);
|
||||
*dest_format = gimp_lcms_get_format (*dest_format, &lcms_dest_format);
|
||||
*src_format = gimp_color_profile_get_format (*src_format, &lcms_src_format);
|
||||
*dest_format = gimp_color_profile_get_format (*dest_format, &lcms_dest_format);
|
||||
|
||||
if (proof_profile)
|
||||
{
|
||||
@ -550,9 +550,9 @@ gimp_widget_get_color_transform (GtkWidget *widget,
|
||||
config->display_intent,
|
||||
softproof_flags);
|
||||
|
||||
gimp_lcms_profile_close (proof_profile);
|
||||
gimp_color_profile_close (proof_profile);
|
||||
}
|
||||
else if (! gimp_lcms_profile_is_equal (src_profile, dest_profile))
|
||||
else if (! gimp_color_profile_is_equal (src_profile, dest_profile))
|
||||
{
|
||||
cmsUInt32Number display_flags = 0;
|
||||
|
||||
@ -568,8 +568,8 @@ gimp_widget_get_color_transform (GtkWidget *widget,
|
||||
display_flags);
|
||||
}
|
||||
|
||||
gimp_lcms_profile_close (src_profile);
|
||||
gimp_lcms_profile_close (dest_profile);
|
||||
gimp_color_profile_close (src_profile);
|
||||
gimp_color_profile_close (dest_profile);
|
||||
|
||||
return transform;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user