Philipp Hörist pushed to branch master at gajim / gajim

Commits:
c473fa61 by André Apitzsch at 2018-01-19T01:52:58+01:00
location_listener: location update notifier requires three parameters

the third parameter contains the location parameter specification

- - - - -
b2269924 by Philipp Hörist at 2018-01-19T07:55:02+01:00
Merge branch 'fixLocation' into 'master'

location_listener: location update notifier requires three parameters

Closes #8856

See merge request gajim/gajim!194
- - - - -


1 changed file:

- gajim/common/location_listener.py


Changes:

=====================================
gajim/common/location_listener.py
=====================================
--- a/gajim/common/location_listener.py
+++ b/gajim/common/location_listener.py
@@ -43,7 +43,9 @@ class LocationListener:
     def __init__(self):
         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()
         timestamp = location.get_property("timestamp")[0]
         lat = location.get_property("latitude")



View it on GitLab: 
https://dev.gajim.org/gajim/gajim/compare/1605b722b71bd3e126396e4a9e15bae1dcdfc7ac...b2269924af0dbbaf25d376da48fb40f298e32675

---
View it on GitLab: 
https://dev.gajim.org/gajim/gajim/compare/1605b722b71bd3e126396e4a9e15bae1dcdfc7ac...b2269924af0dbbaf25d376da48fb40f298e32675
You're receiving this email because of your account on dev.gajim.org.
_______________________________________________
Commits mailing list
[email protected]
https://lists.gajim.org/cgi-bin/listinfo/commits

Reply via email to