[polari] Stringify the xml definitions for E4X removal



commit aa4bda2f4220edb38d839d4c303cd8a14edae816
Author: Tim Lunn <tim feathertop org>
Date:   Fri Oct 25 11:05:53 2013 +1100

    Stringify the xml definitions for E4X removal
    
    https://bugzilla.gnome.org/show_bug.cgi?id=691409

 src/notify.js |   45 +++++++++++++++++++++++----------------------
 1 files changed, 23 insertions(+), 22 deletions(-)
---
diff --git a/src/notify.js b/src/notify.js
index 91b7ef9..c88a78b 100644
--- a/src/notify.js
+++ b/src/notify.js
@@ -3,28 +3,29 @@ const Gio = imports.gi.Gio;
 const Lang = imports.lang;
 const Signals = imports.signals;
 
-const NotificationDaemonIface =
-  <interface name="org.freedesktop.Notifications">
-    <method name="Notify">
-      <arg type="s" direction="in"/>
-      <arg type="u" direction="in"/>
-      <arg type="s" direction="in"/>
-      <arg type="s" direction="in"/>
-      <arg type="s" direction="in"/>
-      <arg type="as" direction="in"/>
-      <arg type="a{sv}" direction="in"/>
-      <arg type="i" direction="in"/>
-      <arg type="u" direction="out"/>
-    </method>
-    <signal name="NotificationClosed">
-      <arg type="u"/>
-      <arg type="u"/>
-    </signal>
-    <signal name="ActionInvoked">
-      <arg type="u"/>
-      <arg type="s"/>
-    </signal>
-  </interface>;
+const NotificationDaemonIface = '<node> \
+<interface name="org.freedesktop.Notifications"> \
+    <method name="Notify"> \
+      <arg type="s" direction="in"/> \
+      <arg type="u" direction="in"/> \
+      <arg type="s" direction="in"/> \
+      <arg type="s" direction="in"/> \
+      <arg type="s" direction="in"/> \
+      <arg type="as" direction="in"/> \
+      <arg type="a{sv}" direction="in"/> \
+      <arg type="i" direction="in"/> \
+      <arg type="u" direction="out"/> \
+    </method> \
+    <signal name="NotificationClosed"> \
+      <arg type="u"/> \
+      <arg type="u"/> \
+    </signal> \
+    <signal name="ActionInvoked"> \
+      <arg type="u"/> \
+      <arg type="s"/> \
+    </signal> \
+</interface> \
+</node>';
 
 const NotificationDaemon = Gio.DBusProxy.makeProxyWrapper(NotificationDaemonIface);
 


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