[gnome-shell] Hide user menu and a11y menu in the screen lock
- From: Giovanni Campagna <gcampagna src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] Hide user menu and a11y menu in the screen lock
- Date: Thu, 16 Aug 2012 20:43:38 +0000 (UTC)
commit cbb56b6128611e65f22069c5f2716032b77c34d0
Author: Giovanni Campagna <gcampagna src gnome org>
Date: Thu Aug 16 19:02:31 2012 +0200
Hide user menu and a11y menu in the screen lock
This is a temporary patch. The user menu button needs to move to
the left, and the a11y menu in some cases needs to be hidden outside
of the screen lock too.
https://bugzilla.gnome.org/show_bug.cgi?id=681143
js/ui/status/accessibility.js | 2 +-
js/ui/userMenu.js | 4 +---
2 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/js/ui/status/accessibility.js b/js/ui/status/accessibility.js
index 9cdc625..a2409f6 100644
--- a/js/ui/status/accessibility.js
+++ b/js/ui/status/accessibility.js
@@ -76,7 +76,7 @@ const ATIndicator = new Lang.Class({
},
setLockedState: function(locked) {
- this.menu.setSettingsVisibility(!locked);
+ this.actor.visible = !locked;
},
_buildItemExtended: function(string, initial_value, writable, on_set) {
diff --git a/js/ui/userMenu.js b/js/ui/userMenu.js
index 2f74301..08d09a5 100644
--- a/js/ui/userMenu.js
+++ b/js/ui/userMenu.js
@@ -540,9 +540,7 @@ const UserMenuButton = new Lang.Class({
},
setLockedState: function(locked) {
- if (locked)
- this.menu.close();
- this.actor.reactive = !locked;
+ this.actor.visible = !locked;
},
_onDestroy: function() {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]