summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authorRichard Hughes <richard@hughsie.com>2012-12-05 20:49:08 +0000
committerRichard Hughes <richard@hughsie.com>2012-12-05 20:49:18 +0000
commitd6d69d70eb26dff37fe0300637d6f6f32ead0dab (patch)
treeb0901e89092f654b7bfe17cf5706a291949a1fc4 /client
parentdbdc246bfcb260814f021c5c64c8c6f1e447b2bb (diff)
downloadcolord-d6d69d70eb26dff37fe0300637d6f6f32ead0dab.tar.gz
Add a 'SensorId' property to the sensor interface
This lets us discover and use a unique ID that we can use when seleting a sensor to use for calibration. This allows us to support machines with an internal calibration device *and* and external device like the ColorHug. Also print the sensor ID when the user does 'colormgr get-sensors'.
Diffstat (limited to 'client')
-rw-r--r--client/cd-util.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/client/cd-util.c b/client/cd-util.c
index cd36459..b32e162 100644
--- a/client/cd-util.c
+++ b/client/cd-util.c
@@ -403,6 +403,10 @@ cd_util_show_sensor (CdSensor *sensor)
tmp);
}
+ /* TRANSLATORS: sensor identifier */
+ cd_util_print_field (_("Sensor ID"),
+ cd_sensor_get_id (sensor));
+
/* print sensor options */
options = cd_sensor_get_options (sensor);
list = g_hash_table_get_keys (options);