[gnome-shell] kbd-status: Close the menu when switching layouts



commit e0f58c615b40bb4f2befa7a1f8278ede947cfb98
Author: Florian Müllner <fmuellner gnome org>
Date:   Thu Jan 13 23:32:20 2011 +0100

    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 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/js/ui/status/keyboard.js b/js/ui/status/keyboard.js
index b01e28b..df3d1ab 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);
     }
 };



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]