[gnome-shell] Revert "popupMenu: Make the section invisible if it has no visible children"
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] Revert "popupMenu: Make the section invisible if it has no visible children"
- Date: Tue, 10 Sep 2013 14:23:57 +0000 (UTC)
commit fd9401cc6275049bde0f76c3f27bdbf3a92df403
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Mon Sep 9 15:54:17 2013 -0400
Revert "popupMenu: Make the section invisible if it has no visible children"
This reverts commit 5a0ac6c2ac5686c679988c2ca922ed758d2b19f1.
https://bugzilla.gnome.org/show_bug.cgi?id=707801
js/ui/popupMenu.js | 13 ++-----------
1 files changed, 2 insertions(+), 11 deletions(-)
---
diff --git a/js/ui/popupMenu.js b/js/ui/popupMenu.js
index 1fe78f7..e720c67 100644
--- a/js/ui/popupMenu.js
+++ b/js/ui/popupMenu.js
@@ -921,19 +921,10 @@ const PopupMenuSection = new Lang.Class({
this.isOpen = true;
},
- _syncVisibility: function() {
- this.actor.visible = !this.isEmpty();
- },
-
// deliberately ignore any attempt to open() or close(), but emit the
// corresponding signal so children can still pick it up
- open: function() {
- this._syncVisibility();
- this.emit('open-state-changed', true);
- },
- close: function() {
- this.emit('open-state-changed', false);
- },
+ open: function() { this.emit('open-state-changed', true); },
+ close: function() { this.emit('open-state-changed', false); },
});
const PopupSubMenuMenuItem = new Lang.Class({
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]