From 14b92a48977bbaf36a6790f59e33fe5f4b6914c4 Mon Sep 17 00:00:00 2001 From: Adel Gadllah Date: Thu, 9 Feb 2012 19:57:29 +0100 Subject: [PATCH] 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 file changed, 11 insertions(+) diff --git a/js/ui/shellDBus.js b/js/ui/shellDBus.js index 523338312..5fd65e12b 100644 --- a/js/ui/shellDBus.js +++ b/js/ui/shellDBus.js @@ -50,6 +50,12 @@ const GnomeShellIface = + + + + + + @@ -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) {