[gnome-maps] geoclue: All prop names capitalized
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-maps] geoclue: All prop names capitalized
- Date: Sun, 25 Aug 2013 14:21:13 +0000 (UTC)
commit 0841517675eeb6d2e0da4e588332e9747fadfa77
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date: Sun Aug 25 17:13:50 2013 +0300
geoclue: All prop names capitalized
Latest geoclue will correct the names of D-Bus props to start w/ a
capital letter. Lets adapt! This also means that we once again require
latest of geoclue.
src/geoclue.js | 18 +++++++++++-------
1 files changed, 11 insertions(+), 7 deletions(-)
---
diff --git a/src/geoclue.js b/src/geoclue.js
index bf9e521..2e27817 100644
--- a/src/geoclue.js
+++ b/src/geoclue.js
@@ -54,10 +54,10 @@ const ClientInterface = <interface name="org.freedesktop.GeoClue2.Client">
const ClientProxy = Gio.DBusProxy.makeProxyWrapper(ClientInterface);
const LocationInterface = <interface name="org.freedesktop.GeoClue2.Location">
- <property name="latitude" type="d" access="read"/>
- <property name="longitude" type="d" access="read"/>
- <property name="accuracy" type="d" access="read"/>
- <property name="description" type="s" access="read"/>
+ <property name="Latitude" type="d" access="read"/>
+ <property name="Longitude" type="d" access="read"/>
+ <property name="Accuracy" type="d" access="read"/>
+ <property name="Description" type="s" access="read"/>
</interface>
const LocationProxy = Gio.DBusProxy.makeProxyWrapper(LocationInterface);
@@ -113,9 +113,13 @@ const Geoclue = new Lang.Class({
},
_onLocationUpdated: function(proxy, sender, [oldPath, newPath]) {
- this.location = new LocationProxy(Gio.DBus.system,
- "org.freedesktop.GeoClue2",
- newPath);
+ let geoclueLocation = new LocationProxy(Gio.DBus.system,
+ "org.freedesktop.GeoClue2",
+ newPath);
+ this.location = new Geocode.Location({ latitude: geoclueLocation.Latitude,
+ longitude: geoclueLocation.Longitude,
+ accuracy: geoclueLocation.Accuracy,
+ description: geoclueLocation.Description });
try {
let variant = GLib.Variant.new('ad', [this.location.latitude,
this.location.longitude,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]