color: Do not show standard colorspaces in the 'Add profile' UI
NOTE: You need colord >= 0.1.4 and shared-color-profiles >= 0.1.5 for this to work.
This commit is contained in:
parent
f4ac4f1a0f
commit
c9647e530d
1 changed files with 11 additions and 0 deletions
|
@ -291,6 +291,9 @@ static gboolean
|
|||
gcm_prefs_is_profile_suitable_for_device (CdProfile *profile,
|
||||
CdDevice *device)
|
||||
{
|
||||
#if CD_CHECK_VERSION(0,1,14)
|
||||
const gchar *data_source;
|
||||
#endif
|
||||
CdProfileKind profile_kind_tmp;
|
||||
CdProfileKind profile_kind;
|
||||
CdColorspace profile_colorspace;
|
||||
|
@ -311,6 +314,14 @@ gcm_prefs_is_profile_suitable_for_device (CdProfile *profile,
|
|||
if (profile_kind_tmp != profile_kind)
|
||||
goto out;
|
||||
|
||||
#if CD_CHECK_VERSION(0,1,14)
|
||||
/* ignore the colorspace profiles */
|
||||
data_source = cd_profile_get_metadata_item (profile,
|
||||
CD_PROFILE_METADATA_DATA_SOURCE);
|
||||
if (g_strcmp0 (data_source, CD_PROFILE_METADATA_DATA_SOURCE_STANDARD) == 0)
|
||||
goto out;
|
||||
#endif
|
||||
|
||||
/* success */
|
||||
ret = TRUE;
|
||||
out:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue