[gnome-color-manager] trivial: fix up a couple of problems in the new virtual device code



commit 34d97577a8ea03bff7fcb808c8dccf3a30858c7e
Author: Richard Hughes <richard hughsie com>
Date:   Wed Feb 24 10:54:17 2010 +0000

    trivial: fix up a couple of problems in the new virtual device code

 src/gcm-client.c         |    3 ++-
 src/gcm-device-virtual.c |    4 ++--
 2 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/src/gcm-client.c b/src/gcm-client.c
index feb17c0..306e96a 100644
--- a/src/gcm-client.c
+++ b/src/gcm-client.c
@@ -837,7 +837,8 @@ gcm_client_add_device (GcmClient *client, GcmDevice *device, GError **error)
 	/* look to see if device already exists */
 	device_tmp = gcm_client_get_device_by_id (client, id);
 	if (device_tmp != NULL) {
-		g_set_error_literal (error, 1, 0, "already found in device array");
+		/* TRANSLATORS: error message */
+		g_set_error_literal (error, 1, 0, _("This device already exists"));
 		goto out;
 	}
 
diff --git a/src/gcm-device-virtual.c b/src/gcm-device-virtual.c
index 8f41142..71051b3 100644
--- a/src/gcm-device-virtual.c
+++ b/src/gcm-device-virtual.c
@@ -47,8 +47,8 @@ gcm_device_virtual_create_from_params (GcmDeviceVirtual *device_virtual,
 	gchar *title;
 
 	/* make some stuff up */
-	title = g_strdup_printf ("%s - %s", model, manufacturer);
-	id = g_strdup_printf ("%s_%s", model, manufacturer);
+	title = g_strdup_printf ("%s - %s", manufacturer, model);
+	id = g_strdup_printf ("%s_%s", manufacturer, model);
 	gcm_utils_alphanum_lcase (id);
 
 	/* create the device */



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