popupMenu: Close all child menus when the main menu is closed

Otherwise, if something managed to call close(), it wouldn't
close any child menus.

https://bugzilla.gnome.org/show_bug.cgi?id=693572
This commit is contained in:
Jasper St. Pierre 2013-02-16 13:43:01 -05:00
parent c9783b38c4
commit 809295c03d

View File

@ -1267,6 +1267,10 @@ const PopupMenu = new Lang.Class({
if (this._activeMenuItem) if (this._activeMenuItem)
this._activeMenuItem.setActive(false); this._activeMenuItem.setActive(false);
this._childMenus.forEach(function(childMenu) {
childMenu.close();
});
if (this._boxPointer.actor.visible) if (this._boxPointer.actor.visible)
this._boxPointer.hide(animate); this._boxPointer.hide(animate);