[gnome-color-manager/colord] Set the colorspace on new XRandr CdDevice objects



commit 68478e5f8e7073ea1e4f60b50cd49790f2a6d6a0
Author: Richard Hughes <richard hughsie com>
Date:   Mon Jan 31 22:04:49 2011 +0000

    Set the colorspace on new XRandr CdDevice objects

 src/gcm-session.c |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)
---
diff --git a/src/gcm-session.c b/src/gcm-session.c
index 9c7360c..6bf72bb 100644
--- a/src/gcm-session.c
+++ b/src/gcm-session.c
@@ -978,6 +978,18 @@ gcm_x11_screen_output_added_cb (GcmX11Screen *screen_,
 		goto out;
 	}
 
+	/* set colorspace */
+	ret = cd_device_set_colorspace_sync (device,
+					     CD_COLORSPACE_RGB,
+					     NULL,
+					     &error);
+	if (device == NULL) {
+		g_warning ("failed to create device: %s",
+			   error->message);
+		g_error_free (error);
+		goto out;
+	}
+
 	/* set model */
 	ret = cd_device_set_model_sync (device,
 					gcm_x11_output_get_name (output),



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]