[gnome-shell] shellEntry: Destroy entry menus when the entry actors are destroyed
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] shellEntry: Destroy entry menus when the entry actors are destroyed
- Date: Fri, 5 Apr 2013 03:15:30 +0000 (UTC)
commit 14189e6827057b39a6174978c765ab02b05b7e19
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Thu Apr 4 11:35:50 2013 -0400
shellEntry: Destroy entry menus when the entry actors are destroyed
This ensures that a menu and manager aren't sticking around.
https://bugzilla.gnome.org/show_bug.cgi?id=697295
js/ui/shellEntry.js | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/js/ui/shellEntry.js b/js/ui/shellEntry.js
index 61e43a9..2256af0 100644
--- a/js/ui/shellEntry.js
+++ b/js/ui/shellEntry.js
@@ -171,4 +171,10 @@ function addContextMenu(entry, params) {
entry.connect('button-press-event', Lang.bind(null, _onButtonPressEvent, entry));
entry.connect('popup-menu', Lang.bind(null, _onPopup, entry));
+
+ entry.connect('destroy', function() {
+ entry.menu.destroy();
+ entry.menu = null;
+ entry._menuManager = null;
+ });
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]