[gnome-shell] keyboard: Disable "tray" button in lock/login screen
- From: Florian MÃllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] keyboard: Disable "tray" button in lock/login screen
- Date: Tue, 25 Sep 2012 06:26:29 +0000 (UTC)
commit 18eedbc02ddf3bd9b75c80980cf875c82836143e
Author: Florian MÃllner <fmuellner gnome org>
Date: Mon Sep 24 21:52:47 2012 +0200
keyboard: Disable "tray" button in lock/login screen
It is not possible to summon the tray via shortcut or dwelling
while the screen is locked, so it is odd to allow it from the
on-screen-keyboard.
https://bugzilla.gnome.org/show_bug.cgi?id=683546
js/ui/keyboard.js | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/js/ui/keyboard.js b/js/ui/keyboard.js
index 2389ba5..4d97a9d 100644
--- a/js/ui/keyboard.js
+++ b/js/ui/keyboard.js
@@ -349,6 +349,13 @@ const Keyboard = new Lang.Class({
trayButton.reactive = true;
trayButton.remove_style_pseudo_class('grayed');
}));
+ Main.sessionMode.connect('updated', Lang.bind(this, function() {
+ trayButton.reactive = !Main.sessionMode.isLocked;
+ if (Main.sessionMode.isLocked)
+ trayButton.add_style_pseudo_class('grayed');
+ else
+ trayButton.remove_style_pseudo_class('grayed');
+ }));
return trayButton;
},
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]