[gnome-maps] geoclue: Extract "Heading" info from Geoclue



commit 915b402c0f2c29a0bbc69c5975a2f566d8670047
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Wed Jun 3 12:24:00 2015 +0100

    geoclue: Extract "Heading" info from Geoclue

 src/geoclue.js |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/geoclue.js b/src/geoclue.js
index d714cb9..b52629d 100644
--- a/src/geoclue.js
+++ b/src/geoclue.js
@@ -62,6 +62,7 @@ const LocationInterface = '<node> \
     <property name="Longitude" type="d" access="read"/> \
     <property name="Accuracy" type="d" access="read"/> \
     <property name="Description" type="s" access="read"/> \
+    <property name="Heading" type="d" access="read"/> \
 </interface> \
 </node>';
 const LocationProxy = Gio.DBusProxy.makeProxyWrapper(LocationInterface);
@@ -193,6 +194,7 @@ const Geoclue = new Lang.Class({
         let location = new Location.Location({ latitude: geoclueLocation.Latitude,
                                                longitude: geoclueLocation.Longitude,
                                                accuracy: geoclueLocation.Accuracy,
+                                               heading: geoclueLocation.Heading,
                                                description: geoclueLocation.Description });
         this._updateLocation(location);
         if (this._timeoutId !== 0) {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]