Hide the user menu in the GDM greeter lock screen

https://bugzilla.gnome.org/show_bug.cgi?id=683705
This commit is contained in:
Giovanni Campagna 2012-09-10 11:34:49 +02:00
parent 8cf9baa132
commit 785be2f327
2 changed files with 3 additions and 0 deletions

View File

@ -48,6 +48,7 @@ const _modes = {
'lock-screen': { 'lock-screen': {
isLocked: true, isLocked: true,
isGreeter: undefined,
unlockDialog: undefined, unlockDialog: undefined,
components: ['networkAgent', 'polkitAgent', 'telepathyClient'], components: ['networkAgent', 'polkitAgent', 'telepathyClient'],
panel: { panel: {

View File

@ -577,6 +577,8 @@ const UserMenuButton = new Lang.Class({
}, },
_sessionUpdated: function() { _sessionUpdated: function() {
this.actor.visible = !Main.sessionMode.isGreeter;
let allowSettings = Main.sessionMode.allowSettings; let allowSettings = Main.sessionMode.allowSettings;
this._statusChooser.setSensitive(allowSettings); this._statusChooser.setSensitive(allowSettings);
this._systemSettings.visible = allowSettings; this._systemSettings.visible = allowSettings;