mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-18 07:34:54 +00:00
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
This commit is contained in:
parent
25fe730d16
commit
aebdf79430
1 changed files with 1 additions and 0 deletions
|
|
@ -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
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue