[gnome-shell/wip/sass] shellDBus: Add mode parameter to AcceleratorActivated signal



commit 52f387e112768b334b0d004a2ebb1ebc9d53bb67
Author: Florian Müllner <fmuellner gnome org>
Date:   Wed Nov 12 20:49:24 2014 +0100

    shellDBus: Add mode parameter to AcceleratorActivated signal
    
    This will allow g-s-d to handle actions differently based on the
    current mode - namely, allow the power button when locked, but
    make sure to never show any dialogs in that case.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=711682

 js/ui/shellDBus.js |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/js/ui/shellDBus.js b/js/ui/shellDBus.js
index 147b5f4..7e45d84 100644
--- a/js/ui/shellDBus.js
+++ b/js/ui/shellDBus.js
@@ -196,7 +196,8 @@ const GnomeShell = new Lang.Class({
         let connection = this._dbusImpl.get_connection();
         let info = this._dbusImpl.get_info();
         let params = { 'device-id': GLib.Variant.new('u', deviceid),
-                       'timestamp': GLib.Variant.new('u', timestamp) };
+                       'timestamp': GLib.Variant.new('u', timestamp),
+                       'action-mode': GLib.Variant.new('u', Main.actionMode) };
         connection.emit_signal(destination,
                                this._dbusImpl.get_object_path(),
                                info ? info.name : null,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]