[gnome-shell/wip/muktupavels/flashback: 182/182] ui/shellDBus.js: move ShowOSD to org.gnome.Shell.OSD



commit ae95b9ba4990285c789366fad9b6c0b70e9dba75
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date:   Sat Dec 13 23:37:18 2014 +0200

    ui/shellDBus.js: move ShowOSD to org.gnome.Shell.OSD

 js/ui/shellDBus.js |   14 +++++++++++---
 1 files changed, 11 insertions(+), 3 deletions(-)
---
diff --git a/js/ui/shellDBus.js b/js/ui/shellDBus.js
index ee09d16..0b4ce65 100644
--- a/js/ui/shellDBus.js
+++ b/js/ui/shellDBus.js
@@ -22,9 +22,6 @@ const GnomeShellIface = '<node> \
     <arg type="s" direction="out" name="result" /> \
 </method> \
 <method name="FocusSearch"/> \
-<method name="ShowOSD"> \
-    <arg type="a{sv}" direction="in" name="params"/> \
-</method> \
 <method name="ShowMonitorLabels"> \
     <arg type="a{uv}" direction="in" name="params" /> \
 </method> \
@@ -61,6 +58,14 @@ const GnomeShellKeyGrabberIface = '<node> \
 </interface> \
 </node>';
 
+const GnomeShellOSDIface = '<node> \
+<interface name="org.gnome.Shell.OSD"> \
+<method name="ShowOSD"> \
+    <arg type="a{sv}" direction="in" name="params"/> \
+</method> \
+</interface> \
+</node>';
+
 const ScreenSaverIface = '<node> \
 <interface name="org.gnome.ScreenSaver"> \
 <method name="Lock"> \
@@ -91,6 +96,9 @@ const GnomeShell = new Lang.Class({
         this._dbusKeyGrabberImpl = Gio.DBusExportedObject.wrapJSObject(GnomeShellKeyGrabberIface, this);
         this._dbusKeyGrabberImpl.export(Gio.DBus.session, '/org/gnome/Shell/KeyGrabber');
 
+        this._dbusOSDImpl = Gio.DBusExportedObject.wrapJSObject(GnomeShellOSDIface, this);
+        this._dbusOSDImpl.export(Gio.DBus.session, '/org/gnome/Shell/OSD');
+
         this._extensionsService = new GnomeShellExtensions();
         this._screenshotService = new Screenshot.ScreenshotService();
 


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