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
This commit is contained in:
Florian Müllner 2011-01-13 23:32:20 +01:00
parent e73e4375b8
commit d21f04b8b4

View File

@ -36,6 +36,7 @@ LayoutMenuItem.prototype = {
}, },
activate: function(event) { activate: function(event) {
PopupMenu.PopupBaseMenuItem.prototype.activate.call(this);
this._config.lock_group(this._id); this._config.lock_group(this._id);
} }
}; };