From 06198702c2da5b34db4d74a997d4e5334a01a4fb Mon Sep 17 00:00:00 2001 From: Giovanni Campagna Date: Wed, 23 Feb 2011 18:52:35 +0100 Subject: [PATCH] KeyboardStatus: fix showing current layout Util.spawn accepts an array of strings as the arguments, and will not implicitly convert other types. https://bugzilla.gnome.org/show_bug.cgi?id=643104 --- js/ui/status/keyboard.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/ui/status/keyboard.js b/js/ui/status/keyboard.js index 883c534b8..ae498e0f9 100644 --- a/js/ui/status/keyboard.js +++ b/js/ui/status/keyboard.js @@ -71,7 +71,7 @@ XKBIndicator.prototype = { this.menu.addMenuItem(new PopupMenu.PopupSeparatorMenuItem()); this.menu.addAction(_("Show Keyboard Layout..."), Lang.bind(this, function() { - Util.spawn(['gkbd-keyboard-display', '-g', this._config.get_current_group() + 1]); + Util.spawn(['gkbd-keyboard-display', '-g', String(this._config.get_current_group() + 1)]); })); this.menu.addAction(_("Localization Settings"), function() { Util.spawn(['gnome-control-center', 'region']);