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:
parent
66bd8b553f
commit
14b92a4897
@ -50,6 +50,12 @@ const GnomeShellIface = <interface name="org.gnome.Shell">
|
|||||||
<arg type="s" direction="in" name="filename"/>
|
<arg type="s" direction="in" name="filename"/>
|
||||||
<arg type="b" direction="out" name="success"/>
|
<arg type="b" direction="out" name="success"/>
|
||||||
</method>
|
</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">
|
<method name="EnableExtension">
|
||||||
<arg type="s" direction="in" name="uuid"/>
|
<arg type="s" direction="in" name="uuid"/>
|
||||||
</method>
|
</method>
|
||||||
@ -191,6 +197,11 @@ const GnomeShell = new Lang.Class({
|
|||||||
flash, invocation));
|
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() {
|
ListExtensions: function() {
|
||||||
let out = {};
|
let out = {};
|
||||||
for (let uuid in ExtensionUtils.extensions) {
|
for (let uuid in ExtensionUtils.extensions) {
|
||||||
|
Loading…
Reference in New Issue
Block a user