[gnome-shell] keyboard: _showLayoutItem is only defined if allowSettings.
- From: Giovanni Campagna <gcampagna src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] keyboard: _showLayoutItem is only defined if allowSettings.
- Date: Tue, 7 Aug 2012 14:50:31 +0000 (UTC)
commit 9082b4df48ef127cc16e32edcb0cfd9fc05c9a46
Author: Alban Browaeys <prahal yahoo com>
Date: Fri Aug 3 03:28:32 2012 +0200
keyboard: _showLayoutItem is only defined if allowSettings.
Check Main.sessionMode.allowSettings is true before accessing the
actor item of _showLayoutItem.
https://bugzilla.gnome.org/show_bug.cgi?id=681101
js/ui/status/keyboard.js | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/js/ui/status/keyboard.js b/js/ui/status/keyboard.js
index 4a3fdc7..900c81c 100644
--- a/js/ui/status/keyboard.js
+++ b/js/ui/status/keyboard.js
@@ -178,7 +178,9 @@ const InputSourceIndicator = new Lang.Class({
},
setLockedState: function(locked) {
- this._showLayoutItem.actor.visible = !locked;
+ if (Main.sessionMode.allowSettings) {
+ this._showLayoutItem.actor.visible = !locked;
+ }
this.menu.setSettingsVisibility(!locked);
},
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]