[gnome-clocks] Handle the call of the async callback fuction correctly



commit 3b2603145037ea8e902caec158d7654d2267a84c
Author: Evgeny Bobkin <evgen ibqn gmail com>
Date:   Thu Sep 19 09:59:27 2013 +0200

    Handle the call of the async callback fuction correctly

 src/geocoding.vala |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/src/geocoding.vala b/src/geocoding.vala
index ffec2e7..99b6967 100644
--- a/src/geocoding.vala
+++ b/src/geocoding.vala
@@ -95,7 +95,11 @@ public class Info : Object {
             return;
         }
 
-        client.location_updated.connect (on_location_updated);
+        client.location_updated.connect ((old_path, new_path) => {
+            on_location_updated.begin (old_path, new_path, (obj, res) => {
+                on_location_updated.end (res);
+            });
+        });
 
         try {
             yield client.start ();


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