From d21f04b8b4b789bf071193bbac94e501a299ce71 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Thu, 13 Jan 2011 23:32:20 +0100 Subject: [PATCH] kbd-status: Close the menu when switching layouts Layout items in the menu overwrite PopupBaseMenuItem.activate(), so the menu stays open when selecting a layout from the menu. Chain up to the parent class' method to make the items behave properly. https://bugzilla.gnome.org/show_bug.cgi?id=639474 --- js/ui/status/keyboard.js | 1 + 1 file changed, 1 insertion(+) diff --git a/js/ui/status/keyboard.js b/js/ui/status/keyboard.js index b01e28b69..df3d1ab58 100644 --- a/js/ui/status/keyboard.js +++ b/js/ui/status/keyboard.js @@ -36,6 +36,7 @@ LayoutMenuItem.prototype = { }, activate: function(event) { + PopupMenu.PopupBaseMenuItem.prototype.activate.call(this); this._config.lock_group(this._id); } };