[gnome-documents] Stringify the xml definitions for E4X removal
- From: Tim Lunn <timl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-documents] Stringify the xml definitions for E4X removal
- Date: Fri, 25 Oct 2013 00:32:43 +0000 (UTC)
commit 8ceac49ef0ca5a2be1b1769a43450ec89571232e
Author: Tim Lunn <tim feathertop org>
Date: Fri Oct 25 10:48:33 2013 +1100
Stringify the xml definitions for E4X removal
https://bugzilla.gnome.org/show_bug.cgi?id=691409
src/changeMonitor.js | 16 ++++++++------
src/miners.js | 10 +++++---
src/shellSearchProvider.js | 50 ++++++++++++++++++++++---------------------
3 files changed, 41 insertions(+), 35 deletions(-)
---
diff --git a/src/changeMonitor.js b/src/changeMonitor.js
index ccd743d..594a232 100644
--- a/src/changeMonitor.js
+++ b/src/changeMonitor.js
@@ -26,13 +26,15 @@ const Signals = imports.signals;
const Application = imports.application;
-const TrackerResourcesServiceIface = <interface name='org.freedesktop.Tracker1.Resources'>
- <signal name="GraphUpdated">
- <arg name="className" type="s" />
- <arg name="deleteEvents" type="a(iiii)" />
- <arg name="insertEvents" type="a(iiii)" />
- </signal>
-</interface>;
+const TrackerResourcesServiceIface = '<node> \
+<interface name="org.freedesktop.Tracker1.Resources"> \
+ <signal name="GraphUpdated"> \
+ <arg name="className" type="s" /> \
+ <arg name="deleteEvents" type="a(iiii)" /> \
+ <arg name="insertEvents" type="a(iiii)" /> \
+ </signal> \
+</interface> \
+</node>';
var TrackerResourcesServiceProxy = Gio.DBusProxy.makeProxyWrapper(TrackerResourcesServiceIface);
function TrackerResourcesService() {
diff --git a/src/miners.js b/src/miners.js
index 5d5dce9..bcb0a22 100644
--- a/src/miners.js
+++ b/src/miners.js
@@ -23,10 +23,12 @@
const Gio = imports.gi.Gio;
const GLib = imports.gi.GLib;
-const MinerIface = <interface name="org.gnome.OnlineMiners.Miner">
- <method name="RefreshDB" />
- <property name="DisplayName" type="s" access="read"/>
-</interface>;
+const MinerIface = '<node> \
+<interface name="org.gnome.OnlineMiners.Miner"> \
+ <method name="RefreshDB" /> \
+ <property name="DisplayName" type="s" access="read"/> \
+</interface> \
+</node>';
var MinerProxy = Gio.DBusProxy.makeProxyWrapper(MinerIface);
diff --git a/src/shellSearchProvider.js b/src/shellSearchProvider.js
index d61c43c..19d00bd 100644
--- a/src/shellSearchProvider.js
+++ b/src/shellSearchProvider.js
@@ -53,30 +53,32 @@ const SEARCH_PROVIDER_PATH = '/org/gnome/Documents/SearchProvider';
const _SHELL_SEARCH_ICON_SIZE = 128;
-const SearchProviderIface = <interface name={SEARCH_PROVIDER_IFACE}>
-<method name="GetInitialResultSet">
- <arg type="as" direction="in" />
- <arg type="as" direction="out" />
-</method>
-<method name = "GetSubsearchResultSet">
- <arg type="as" direction="in" />
- <arg type="as" direction="in" />
- <arg type="as" direction="out" />
-</method>
-<method name = "GetResultMetas">
- <arg type="as" direction="in" />
- <arg type="aa{sv}" direction="out" />
-</method>
-<method name = "ActivateResult">
- <arg type="s" direction="in" />
- <arg type="as" direction="in" />
- <arg type="u" direction="in" />
-</method>
-<method name = "LaunchSearch">
- <arg type="as" direction="in" />
- <arg type="u" direction="in" />
-</method>
-</interface>;
+const SearchProviderIface = '<node> \
+<interface name={SEARCH_PROVIDER_IFACE}> \
+<method name="GetInitialResultSet"> \
+ <arg type="as" direction="in" /> \
+ <arg type="as" direction="out" /> \
+</method> \
+<method name = "GetSubsearchResultSet"> \
+ <arg type="as" direction="in" /> \
+ <arg type="as" direction="in" /> \
+ <arg type="as" direction="out" /> \
+</method> \
+<method name = "GetResultMetas"> \
+ <arg type="as" direction="in" /> \
+ <arg type="aa{sv}" direction="out" /> \
+</method> \
+<method name = "ActivateResult"> \
+ <arg type="s" direction="in" /> \
+ <arg type="as" direction="in" /> \
+ <arg type="u" direction="in" /> \
+</method> \
+<method name = "LaunchSearch"> \
+ <arg type="as" direction="in" /> \
+ <arg type="u" direction="in" /> \
+</method> \
+</interface> \
+</node>';
function _createThumbnailIcon(uri) {
let file = Gio.file_new_for_uri(uri);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]