From ed1352fd128f98c1ba8f7bad15f6e66322544e5b Mon Sep 17 00:00:00 2001 From: Matt Ranostay Date: Fri, 9 Feb 2018 21:13:33 -0800 Subject: binding: geoclue: allow weather binding to get early location Due to the first location not being broadcast as an event we need to be sure an early weather consumer like HomeScreen will receive data. Bug-AGL: SPEC-1273 Change-Id: I8e6d1cb0b7bcc0218ae4c24450269e17457e2beb Signed-off-by: Matt Ranostay --- binding/afm-geoclue-binding.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/binding/afm-geoclue-binding.c b/binding/afm-geoclue-binding.c index ad93a87..3f8e4f4 100644 --- a/binding/afm-geoclue-binding.c +++ b/binding/afm-geoclue-binding.c @@ -125,6 +125,8 @@ static void on_ready(GObject *source_object, GAsyncResult *res, gpointer ptr) abort(); } + send_event(simple); + g_signal_connect(simple, "notify::location", G_CALLBACK(send_event), NULL); } -- cgit 1.2.3-korg