[gnome-shell] KeyboardStatus: fix showing current layout
- From: Giovanni Campagna <gcampagna src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] KeyboardStatus: fix showing current layout
- Date: Wed, 23 Feb 2011 19:15:18 +0000 (UTC)
commit 06198702c2da5b34db4d74a997d4e5334a01a4fb
Author: Giovanni Campagna <gcampagna src gnome org>
Date: Wed Feb 23 18:52:35 2011 +0100
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 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/js/ui/status/keyboard.js b/js/ui/status/keyboard.js
index 883c534..ae498e0 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']);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]