[gnome-shell] popupMenu: Close all child menus when the main menu is closed
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] popupMenu: Close all child menus when the main menu is closed
- Date: Mon, 18 Feb 2013 18:31:35 +0000 (UTC)
commit 809295c03d2a1a7a555529685574af509e3fae94
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Sat Feb 16 13:43:01 2013 -0500
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
js/ui/popupMenu.js | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/js/ui/popupMenu.js b/js/ui/popupMenu.js
index 538d9b6..d65f03f 100644
--- a/js/ui/popupMenu.js
+++ b/js/ui/popupMenu.js
@@ -1267,6 +1267,10 @@ const PopupMenu = new Lang.Class({
if (this._activeMenuItem)
this._activeMenuItem.setActive(false);
+ this._childMenus.forEach(function(childMenu) {
+ childMenu.close();
+ });
+
if (this._boxPointer.actor.visible)
this._boxPointer.hide(animate);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]