[gnome-shell] dbus: Add FlashArea method
- From: Adel Gadllah <agadllah src gnome org>
- To: commits-list gnome org
- Cc: 
- Subject: [gnome-shell] dbus: Add FlashArea method
- Date: Mon, 20 Feb 2012 20:52:56 +0000 (UTC)
commit 14b92a48977bbaf36a6790f59e33fe5f4b6914c4
Author: Adel Gadllah <adel gadllah gmail com>
Date:   Thu Feb 9 19:57:29 2012 +0100
    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
 js/ui/shellDBus.js |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)
---
diff --git a/js/ui/shellDBus.js b/js/ui/shellDBus.js
index 5233383..5fd65e1 100644
--- a/js/ui/shellDBus.js
+++ b/js/ui/shellDBus.js
@@ -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) {
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]