[gnome-color-manager/colord: 55/72] Use GetProfileForQualifier(*) to get the default profile, rather than using the cached profile array
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-color-manager/colord: 55/72] Use GetProfileForQualifier(*) to get the default profile, rather than using the cached profile array
- Date: Tue, 8 Mar 2011 11:27:58 +0000 (UTC)
commit 76c76abd47de76fc2cc092c764a88ea0d5b11733
Author: Richard Hughes <richard hughsie com>
Date: Fri Feb 11 16:16:33 2011 +0000
Use GetProfileForQualifier(*) to get the default profile, rather than using the cached profile array
src/gcm-session.c | 11 ++++++++---
1 files changed, 8 insertions(+), 3 deletions(-)
---
diff --git a/src/gcm-session.c b/src/gcm-session.c
index ca8a7c8..8f33e31 100644
--- a/src/gcm-session.c
+++ b/src/gcm-session.c
@@ -507,10 +507,15 @@ gcm_session_device_assign (CdDevice *device)
}
/* get the default profile for the device */
- profile = cd_device_get_default_profile (device);
+ profile = cd_device_get_profile_for_qualifier_sync (device,
+ "*",
+ NULL,
+ &error);
if (profile == NULL) {
- g_debug ("%s has no profile to set",
- cd_device_get_id (device));
+ g_debug ("%s has no default profile to set: %s",
+ cd_device_get_id (device),
+ error->message);
+ g_clear_error (&error);
/* clear the _ICC_PROFILE atom if not logging in */
ret = gcm_x11_output_remove_profile (output,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]