[gnome-shell] Hide the user menu in the GDM greeter lock screen
- From: Giovanni Campagna <gcampagna src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] Hide the user menu in the GDM greeter lock screen
- Date: Mon, 10 Sep 2012 19:25:19 +0000 (UTC)
commit 785be2f327762fb473629dd2b99e286d0694d644
Author: Giovanni Campagna <gcampagna src gnome org>
Date: Mon Sep 10 11:34:49 2012 +0200
Hide the user menu in the GDM greeter lock screen
https://bugzilla.gnome.org/show_bug.cgi?id=683705
js/ui/sessionMode.js | 1 +
js/ui/userMenu.js | 2 ++
2 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/js/ui/sessionMode.js b/js/ui/sessionMode.js
index 14e1ff1..082c0f6 100644
--- a/js/ui/sessionMode.js
+++ b/js/ui/sessionMode.js
@@ -48,6 +48,7 @@ const _modes = {
'lock-screen': {
isLocked: true,
+ isGreeter: undefined,
unlockDialog: undefined,
components: ['networkAgent', 'polkitAgent', 'telepathyClient'],
panel: {
diff --git a/js/ui/userMenu.js b/js/ui/userMenu.js
index bb3e1a5..fcac6cd 100644
--- a/js/ui/userMenu.js
+++ b/js/ui/userMenu.js
@@ -577,6 +577,8 @@ const UserMenuButton = new Lang.Class({
},
_sessionUpdated: function() {
+ this.actor.visible = !Main.sessionMode.isGreeter;
+
let allowSettings = Main.sessionMode.allowSettings;
this._statusChooser.setSensitive(allowSettings);
this._systemSettings.visible = allowSettings;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]