[gnome-maps] Stringify the xml definitions for E4X removal
- From: Tim Lunn <timl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-maps] Stringify the xml definitions for E4X removal
- Date: Fri, 25 Oct 2013 00:35:12 +0000 (UTC)
commit fb80658f23bc46c465c330d883bc62583cda9595
Author: Tim Lunn <tim feathertop org>
Date: Fri Oct 25 10:53:36 2013 +1100
Stringify the xml definitions for E4X removal
https://bugzilla.gnome.org/show_bug.cgi?id=691409
src/geoclue.js | 48 +++++++++++++++++++++++++++---------------------
1 files changed, 27 insertions(+), 21 deletions(-)
---
diff --git a/src/geoclue.js b/src/geoclue.js
index 4c0eee0..b364e8d 100644
--- a/src/geoclue.js
+++ b/src/geoclue.js
@@ -34,31 +34,37 @@ 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]