[gnome-settings-daemon] color: Don't do a new sync call just get the results of the async one



commit 3ced590719f79ffa7661a815ecead830f0eba272
Author: Richard Hughes <richard hughsie com>
Date:   Thu Jun 2 19:12:16 2011 +0100

    color: Don't do a new sync call just get the results of the async one
    
    This speeds up the plugin load substantially.

 plugins/color/gsd-color-manager.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/plugins/color/gsd-color-manager.c b/plugins/color/gsd-color-manager.c
index e4c1b2c..4933b3e 100644
--- a/plugins/color/gsd-color-manager.c
+++ b/plugins/color/gsd-color-manager.c
@@ -339,9 +339,9 @@ gcm_session_device_connect_cb (GObject *object,
         GsdColorManager *manager = GSD_COLOR_MANAGER (user_data);
         GsdColorManagerDeviceHelper *helper;
 
-        ret = cd_device_connect_sync (device,
-                                      NULL,
-                                      &error);
+        ret = cd_device_connect_finish (device,
+                                        res,
+                                        &error);
         if (!ret) {
                 g_warning ("failed to connect to device: %s",
                            error->message);



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