dbus: Add FlashArea method

Add a new dbus method that takes an area (x, y, width, height) and fires a
flashspot on it.

This would be useful for applications like totem and cheese.

https://bugzilla.gnome.org/show_bug.cgi?id=669660
This commit is contained in:
Adel Gadllah 2012-02-09 19:57:29 +01:00
parent 66bd8b553f
commit 14b92a4897

View File

@ -50,6 +50,12 @@ const GnomeShellIface = <interface name="org.gnome.Shell">
<arg type="s" direction="in" name="filename"/>
<arg type="b" direction="out" name="success"/>
</method>
<method name="FlashArea">
<arg type="i" direction="in" name="x"/>
<arg type="i" direction="in" name="y"/>
<arg type="i" direction="in" name="width"/>
<arg type="i" direction="in" name="height"/>
</method>
<method name="EnableExtension">
<arg type="s" direction="in" name="uuid"/>
</method>
@ -191,6 +197,11 @@ const GnomeShell = new Lang.Class({
flash, invocation));
},
FlashArea: function(x, y, width, height) {
let flashspot = new Flashspot.Flashspot({ x : x, y : y, width: width, height: height});
flashspot.fire();
},
ListExtensions: function() {
let out = {};
for (let uuid in ExtensionUtils.extensions) {