[gnome-settings-daemon] color: Set new metadata so we can make the control center match the new mockups
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon] color: Set new metadata so we can make the control center match the new mockups
- Date: Fri, 4 Jan 2013 18:06:43 +0000 (UTC)
commit 964ccfe9642d0e0ecd6bb496e0dc2b2c2996410a
Author: Richard Hughes <richard hughsie com>
Date: Fri Jan 4 17:59:47 2013 +0000
color: Set new metadata so we can make the control center match the new mockups
Set the ConnectionType metadata to 'internal' for outputs that are internally
connected.
plugins/color/gsd-color-manager.c | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/plugins/color/gsd-color-manager.c b/plugins/color/gsd-color-manager.c
index 2a241b3..65c06dc 100644
--- a/plugins/color/gsd-color-manager.c
+++ b/plugins/color/gsd-color-manager.c
@@ -1441,6 +1441,15 @@ gcm_session_add_x11_output (GsdColorManager *manager, GnomeRROutput *output)
(gpointer) CD_DEVICE_METADATA_OUTPUT_PRIORITY_PRIMARY :
(gpointer) CD_DEVICE_METADATA_OUTPUT_PRIORITY_SECONDARY);
#endif
+#if CD_CHECK_VERSION(0,1,27)
+ /* set this so we can call the device a 'Laptop Screen' in the
+ * control center main panel */
+ if (gnome_rr_output_is_laptop (output)) {
+ g_hash_table_insert (device_props,
+ (gpointer) CD_DEVICE_METADATA_CONNECTION_TYPE,
+ (gpointer) CD_DEVICE_METADATA_CONNECTION_TYPE_INTERNAL);
+ }
+#endif
cd_client_create_device (priv->client,
device_id,
CD_OBJECT_SCOPE_TEMP,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]