Commit 24e1f65b authored by Richard Hughes's avatar Richard Hughes

trivial: Fix the 'Gray' colorspace support

parent 8e7736c3
......@@ -71,7 +71,7 @@
<description>The CMYK profile filename to be used by applications by default.</description>
</key>
<key name="colorspace-gray" type="s">
<default>'/usr/share/color/icc/Argyll/Gray.icc'</default>
<default>'/usr/share/color/icc/Oyranos/Gray.icc'</default>
<summary>The default gray profile</summary>
<description>The gray profile filename to be used by applications by default.</description>
</key>
......
......@@ -2200,7 +2200,7 @@ cc_color_panel_setup_space_combobox (CcColorPanel *panel, GtkWidget *widget, Gcm
colorspace_tmp = gcm_profile_get_colorspace (profile);
if (!has_vcgt &&
colorspace == colorspace_tmp &&
(colorspace == GCM_COLORSPACE_CMYK ||
(colorspace != GCM_COLORSPACE_RGB ||
has_colorspace_description)) {
cc_color_panel_combobox_add_profile (widget, profile, GCM_PREFS_ENTRY_TYPE_PROFILE, &iter);
......
......@@ -605,6 +605,10 @@ gcm_colorspace_to_localised_string (GcmColorspace colorspace)
/* TRANSLATORS: this is the colorspace, e.g. cyan, magenta, yellow, black */
return _("CMYK");
}
if (colorspace == GCM_COLORSPACE_GRAY) {
/* TRANSLATORS: this is the colorspace type */
return _("gray");
}
return NULL;
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment