[gnome-color-manager] Ensure we add virtual and saved device types in GcmDbus



commit 1ffdfbd9d460bfcad4a99284fb5cec2b9a8738b1
Author: Richard Hughes <richard hughsie com>
Date:   Fri May 21 14:31:47 2010 +0100

    Ensure we add virtual and saved device types in GcmDbus

 src/gcm-dbus.c |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)
---
diff --git a/src/gcm-dbus.c b/src/gcm-dbus.c
index c89a51a..0cf286a 100644
--- a/src/gcm-dbus.c
+++ b/src/gcm-dbus.c
@@ -560,7 +560,14 @@ gcm_dbus_init (GcmDbus *dbus)
 	dbus->priv->colorspace_rgb = g_settings_get_string (dbus->priv->settings, GCM_SETTINGS_COLORSPACE_RGB);
 	dbus->priv->colorspace_cmyk = g_settings_get_string (dbus->priv->settings, GCM_SETTINGS_COLORSPACE_CMYK);
 
-	/* get all devices */
+	/* get all saved devices */
+	ret = gcm_client_add_saved (dbus->priv->client, &error);
+	if (!ret) {
+		egg_warning ("failed to coldplug: %s", error->message);
+		g_error_free (error);
+	}
+
+	/* get all connected devices */
 	ret = gcm_client_add_connected (dbus->priv->client, GCM_CLIENT_COLDPLUG_ALL, &error);
 	if (!ret) {
 		egg_warning ("failed to coldplug: %s", error->message);



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