[gnome-color-manager] Use the model name for the SANE id, the 'name' attribute depends on the USB port used



commit 0a18bb0d20d8040039f99c8d18e14b701675de61
Author: Richard Hughes <richard hughsie com>
Date:   Wed Mar 24 11:05:08 2010 +0000

    Use the model name for the SANE id, the 'name' attribute depends on the USB port used

 src/gcm-device-sane.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/gcm-device-sane.c b/src/gcm-device-sane.c
index 5deb1aa..07dfd3f 100644
--- a/src/gcm-device-sane.c
+++ b/src/gcm-device-sane.c
@@ -178,7 +178,7 @@ gcm_device_sane_set_from_device (GcmDevice *device, const SANE_Device *sane_devi
 	egg_debug ("type=%s", sane_device->type);
 
 	/* convert device_id 'plustek:libusb:004:002' to suitable id */
-	id = g_strdup_printf ("sane_%s", sane_device->name);
+	id = g_strdup_printf ("sane_%s", sane_device->model);
 	gcm_utils_alphanum_lcase (id);
 
 	/* make safe strings */



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