diff options
author | Matt Ranostay <matt.ranostay@konsulko.com> | 2018-02-09 21:13:33 -0800 |
---|---|---|
committer | Matt Ranostay <matt.ranostay@konsulko.com> | 2018-02-09 21:19:36 -0800 |
commit | ed1352fd128f98c1ba8f7bad15f6e66322544e5b (patch) | |
tree | 3aeb1b3499c81f882231e3ff425da01b4afb8ea8 /binding | |
parent | f55348409fb63ba43c56f18f2b871eaa12398b82 (diff) |
binding: geoclue: allow weather binding to get early locationflounder_5.99.1flounder/5.99.15.99.1
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 <matt.ranostay@konsulko.com>
Diffstat (limited to 'binding')
-rw-r--r-- | binding/afm-geoclue-binding.c | 2 |
1 files changed, 2 insertions, 0 deletions
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); } |