[gnome-clocks/wip/cityimages: 38/40] Handle the call of the async callback fuction correctly



commit fc56e937882b2ab33df8756a056cb707bfa1d865
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 0f8d71a..02e1824 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]