Merge branch 'fixLocation' into 'master'
location_listener: location update notifier requires three parameters Closes #8856 See merge request gajim/gajim!194
This commit is contained in:
commit
b2269924af
1 changed files with 3 additions and 1 deletions
|
@ -43,7 +43,9 @@ class LocationListener:
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
self._data = {}
|
self._data = {}
|
||||||
|
|
||||||
def _on_location_update(self, simple):
|
# Note: do not remove third parameter `paramSpec`
|
||||||
|
# because notify signal expects three parameters
|
||||||
|
def _on_location_update(self, simple, paramSpec=None):
|
||||||
location = simple.get_location()
|
location = simple.get_location()
|
||||||
timestamp = location.get_property("timestamp")[0]
|
timestamp = location.get_property("timestamp")[0]
|
||||||
lat = location.get_property("latitude")
|
lat = location.get_property("latitude")
|
||||||
|
|
Loading…
Add table
Reference in a new issue