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



commit 88712baa156e497ce63e4ad5511d0772730478a4
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 85a1e1a..c450dc1 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="FocusApp"> \
     <arg type="s" direction="in" name="id"/> \
 </method> \
@@ -57,6 +54,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"> \
@@ -87,6 +92,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]