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



commit e0fd193ca8d12558bad8a5e4e21391b2357c982a
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]