[gnome-color-manager/colord: 39/72] Set the colorspace on new XRandr CdDevice objects
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-color-manager/colord: 39/72] Set the colorspace on new XRandr CdDevice objects
- Date: Tue, 8 Mar 2011 11:26:37 +0000 (UTC)
commit 9a0e4ed861faee8db33e41734217f9e48d95222d
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]