From aebdf79430bf8281263ba98627ff0e0e72ddb708 Mon Sep 17 00:00:00 2001 From: Giovanni Campagna Date: Wed, 29 Sep 2010 18:12:38 +0200 Subject: [PATCH] Connect PopupMenuManager to destroy signal PopupMenuManager now connects to the destroy signal of PopupMenu, so that destroying a PopupMenu is now enough for removing it from the relevant manager. Useful if menu come and go on-the-fly (like in app views or sidebars). https://bugzilla.gnome.org/show_bug.cgi?id=630914 --- js/ui/popupMenu.js | 1 + 1 file changed, 1 insertion(+) diff --git a/js/ui/popupMenu.js b/js/ui/popupMenu.js index 89f56e71d..de8de1eca 100644 --- a/js/ui/popupMenu.js +++ b/js/ui/popupMenu.js @@ -678,6 +678,7 @@ PopupMenuManager.prototype = { menu: menu, openStateChangeId: menu.connect('open-state-changed', Lang.bind(this, this._onMenuOpenState)), activateId: menu.connect('activate', Lang.bind(this, this._onMenuActivated)), + destroyId: menu.connect('destroy', Lang.bind(this, this._onMenuDestroy)), enterId: 0, buttonPressId: 0 };