[gnome-settings-daemon] color: Set model and vendor to 'unknown' if not specified or unavailable
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon] color: Set model and vendor to 'unknown' if not specified or unavailable
- Date: Wed, 2 Nov 2011 16:52:07 +0000 (UTC)
commit b1b01a4987850eb0ffe8ae153906dbad9ba1c282
Author: Richard Hughes <richard hughsie com>
Date: Wed Nov 2 16:49:07 2011 +0000
color: Set model and vendor to 'unknown' if not specified or unavailable
If the user has connected a device without the ability to get the EDID (e.g.
composite TV connection) then don't show a critical warning and fail to add
the device.
Resolves https://bugzilla.redhat.com/show_bug.cgi?id=749504
plugins/color/gsd-color-manager.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/plugins/color/gsd-color-manager.c b/plugins/color/gsd-color-manager.c
index bc86553..b2a8adc 100644
--- a/plugins/color/gsd-color-manager.c
+++ b/plugins/color/gsd-color-manager.c
@@ -1255,6 +1255,12 @@ gcm_session_add_x11_output (GsdColorManager *manager, GnomeRROutput *output)
if (serial == NULL)
serial = "unknown";
+ /* ensure mandatory fields are set */
+ if (model == NULL)
+ model = "unknown";
+ if (vendor == NULL)
+ vendor = "unknown";
+
device_id = gcm_session_get_output_id (manager, output);
g_debug ("output %s added", device_id);
device_props = g_hash_table_new_full (g_str_hash, g_str_equal,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]