[gnome-color-manager] Set the XRANDR_name metadata attribute on all X11 devices



commit 54b2922891311b889b1ba9968c05bff2cf54352a
Author: Richard Hughes <richard hughsie com>
Date:   Thu Mar 31 11:30:53 2011 +0100

    Set the XRANDR_name metadata attribute on all X11 devices

 src/gcm-session.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/gcm-session.c b/src/gcm-session.c
index 711d8a0..676f0d4 100644
--- a/src/gcm-session.c
+++ b/src/gcm-session.c
@@ -1345,6 +1345,11 @@ gcm_session_add_x11_output (GcmSessionPrivate *priv, GcmX11Output *output)
 	g_hash_table_insert (device_props,
 			     g_strdup ("Serial"),
 			     g_strdup (serial));
+#if CD_CHECK_VERSION(0,1,5)
+	g_hash_table_insert (device_props,
+			     g_strdup ("XRANDR_name"),
+			     g_strdup (gcm_x11_output_get_name (output)));
+#endif
 	device = cd_client_create_device_sync (priv->client,
 					       device_id,
 					       CD_OBJECT_SCOPE_TEMP,



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