[gnome-color-manager] trivial: don't show [disconnected] for virtual devices in the UI



commit 836d583b9265a5f5e2ca9ffc975ff534bbcffeb1
Author: Richard Hughes <richard hughsie com>
Date:   Wed Feb 24 09:53:14 2010 +0000

    trivial: don't show [disconnected] for virtual devices in the UI

 src/gcm-prefs.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/gcm-prefs.c b/src/gcm-prefs.c
index d674e65..64cc129 100644
--- a/src/gcm-prefs.c
+++ b/src/gcm-prefs.c
@@ -2012,11 +2012,13 @@ gcm_prefs_add_device_type (GcmDevice *device)
 	GcmDeviceTypeEnum type;
 	const gchar *icon_name;
 	gboolean connected;
+	gboolean virtual;
 
 	/* get details */
 	g_object_get (device,
 		      "id", &id,
 		      "connected", &connected,
+		      "virtual", &virtual,
 		      "title", &title,
 		      "type", &type,
 		      NULL);
@@ -2028,7 +2030,7 @@ gcm_prefs_add_device_type (GcmDevice *device)
 	string = g_string_new (title);
 
 	/* italic for non-connected devices */
-	if (!connected) {
+	if (!connected && !virtual) {
 		/* TRANSLATORS: this is where the device has been setup but is not connected */
 		g_string_append_printf (string, "\n<i>[%s]</i>", _("disconnected"));
 	}



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