[gnome-color-manager/colord] Use GetProfileForQualifier(*) to get the default profile, rather than using the cached profile array



commit a1c10ed44836f39093329f279877f99da8cf4b10
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]