summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Hughes <richard@hughsie.com>2011-06-02 19:12:16 +0100
committerRichard Hughes <richard@hughsie.com>2011-06-02 19:12:26 +0100
commit3ced590719f79ffa7661a815ecead830f0eba272 (patch)
treeb9499b2d54e92438326af1ec78fc680112e7fafd
parent8db09f080267636408ce48628e40e22654424368 (diff)
downloadgnome-settings-daemon-3ced590719f79ffa7661a815ecead830f0eba272.tar.gz
color: Don't do a new sync call just get the results of the async one
This speeds up the plugin load substantially.
-rw-r--r--plugins/color/gsd-color-manager.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/color/gsd-color-manager.c b/plugins/color/gsd-color-manager.c
index e4c1b2cf..4933b3e8 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);