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
This commit is contained in:
Giovanni Campagna 2011-02-23 18:52:35 +01:00
parent 12d991f336
commit 06198702c2

View File

@ -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']);