[gnome-settings-daemon/gnome-3-6] 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/gnome-3-6] color: Set new metadata so we can make the control center match the new mockups
- Date: Sat, 5 Jan 2013 08:28:51 +0000 (UTC)
commit 5981311639617345d057dfe99f24735b1300887a
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 b6dfc8e..3d48a57 100644
--- a/plugins/color/gsd-color-manager.c
+++ b/plugins/color/gsd-color-manager.c
@@ -1440,6 +1440,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]