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:
@ -381,13 +381,13 @@ colorsel_cmyk_config_changed (ColorselCmyk *module)
|
||||
cmyk_profile = gimp_color_config_get_cmyk_profile (config, NULL);
|
||||
|
||||
if (! rgb_profile)
|
||||
rgb_profile = gimp_lcms_create_srgb_profile ();
|
||||
rgb_profile = gimp_color_profile_new_srgb ();
|
||||
|
||||
if (! cmyk_profile)
|
||||
goto out;
|
||||
|
||||
label = gimp_lcms_profile_get_label (cmyk_profile);
|
||||
summary = gimp_lcms_profile_get_summary (cmyk_profile);
|
||||
label = gimp_color_profile_get_label (cmyk_profile);
|
||||
summary = gimp_color_profile_get_summary (cmyk_profile);
|
||||
|
||||
text = g_strdup_printf (_("Profile: %s"), label);
|
||||
gtk_label_set_text (GTK_LABEL (module->name_label), text);
|
||||
@ -415,10 +415,10 @@ colorsel_cmyk_config_changed (ColorselCmyk *module)
|
||||
out:
|
||||
|
||||
if (rgb_profile)
|
||||
gimp_lcms_profile_close (rgb_profile);
|
||||
gimp_color_profile_close (rgb_profile);
|
||||
|
||||
if (cmyk_profile)
|
||||
gimp_lcms_profile_close (cmyk_profile);
|
||||
gimp_color_profile_close (cmyk_profile);
|
||||
|
||||
if (! module->in_destruction)
|
||||
colorsel_cmyk_set_color (selector, &selector->rgb, &selector->hsv);
|
||||
|
@ -373,8 +373,8 @@ cdisplay_lcms_update_profile_label (CdisplayLcms *lcms,
|
||||
|
||||
if (profile)
|
||||
{
|
||||
text = gimp_lcms_profile_get_label (profile);
|
||||
tooltip = gimp_lcms_profile_get_summary (profile);
|
||||
text = gimp_color_profile_get_label (profile);
|
||||
tooltip = gimp_color_profile_get_summary (profile);
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -389,7 +389,7 @@ cdisplay_lcms_update_profile_label (CdisplayLcms *lcms,
|
||||
g_free (tooltip);
|
||||
|
||||
if (profile)
|
||||
gimp_lcms_profile_close (profile);
|
||||
gimp_color_profile_close (profile);
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -336,10 +336,10 @@ cdisplay_proof_changed (GimpColorDisplay *display)
|
||||
if (! proof->profile)
|
||||
return;
|
||||
|
||||
rgb_profile = gimp_lcms_create_srgb_profile ();
|
||||
rgb_profile = gimp_color_profile_new_srgb ();
|
||||
|
||||
file = g_file_new_for_path (proof->profile);
|
||||
proof_profile = gimp_lcms_profile_open_from_file (file, NULL);
|
||||
proof_profile = gimp_color_profile_open_from_file (file, NULL);
|
||||
g_object_unref (file);
|
||||
|
||||
if (proof_profile)
|
||||
@ -356,8 +356,8 @@ cdisplay_proof_changed (GimpColorDisplay *display)
|
||||
proof->intent,
|
||||
flags);
|
||||
|
||||
cmsCloseProfile (proof_profile);
|
||||
gimp_color_profile_close (proof_profile);
|
||||
}
|
||||
|
||||
cmsCloseProfile (rgb_profile);
|
||||
gimp_color_profile_close (rgb_profile);
|
||||
}
|
||||
|
Reference in New Issue
Block a user