[gnome-maps/gnome-3-10] Correct geoclue interfaces



commit aa0d880e9283c1c59e6313d917e231dffc4448b0
Author: Jonas Danielsson <jonas threetimestwo org>
Date:   Sun Aug 7 21:29:54 2016 +0200

    Correct geoclue interfaces

 src/geoclue.js |   45 ++++++++++++++++++++++++---------------------
 1 files changed, 24 insertions(+), 21 deletions(-)
---
diff --git a/src/geoclue.js b/src/geoclue.js
index 4c0eee0..7cc3e07 100644
--- a/src/geoclue.js
+++ b/src/geoclue.js
@@ -34,31 +34,34 @@ const Path = imports.path;
 const Signals = imports.signals;
 const _ = imports.gettext.gettext;
 
-const ManagerInterface = <interface name="org.freedesktop.GeoClue2.Manager">
-    <method name="GetClient">
-        <arg name="client" type="o" direction="out"/>
-    </method>
-</interface>
+const ManagerInterface = '<node><interface name="org.freedesktop.GeoClue2.Manager"> \
+    <method name="GetClient"> \
+        <arg name="client" type="o" direction="out"/> \
+    </method> \
+</interface></node>';
+
 const ManagerProxy = Gio.DBusProxy.makeProxyWrapper(ManagerInterface);
 
-const ClientInterface = <interface name="org.freedesktop.GeoClue2.Client">
-    <property name="Location" type="o" access="read"/>
-    <property name="DistanceThreshold" type="u" access="readwrite"/>
-    <method name="Start"/>
-    <method name="Stop"/>
-    <signal name="LocationUpdated">
-        <arg name="old" type="o"/>
-        <arg name="new" type="o"/>
-    </signal>
-</interface>
+const ClientInterface = '<node><interface name="org.freedesktop.GeoClue2.Client"> \
+    <property name="Location" type="o" access="read"/> \
+    <property name="DistanceThreshold" type="u" access="readwrite"/> \
+    <method name="Start"/> \
+    <method name="Stop"/> \
+    <signal name="LocationUpdated"> \
+        <arg name="old" type="o"/> \
+        <arg name="new" type="o"/> \
+    </signal> \
+</interface></node>';
+
 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"/>
-</interface>
+const LocationInterface = '<node><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"/> \
+</interface></node>';
+
 const LocationProxy = Gio.DBusProxy.makeProxyWrapper(LocationInterface);
 
 const Geoclue = new Lang.Class({


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