[gnome-shell] popupMenu: Remove support for nested combo boxes



commit 44e4cbf04a62ae9b7405c21859a1bb294da371f2
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Sun Feb 17 20:02:09 2013 -0500

    popupMenu: Remove support for nested combo boxes
    
    I'm sure this was originally a testcase for nested child
    menus, and we never actually inteded any support for this.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=693572

 js/ui/popupMenu.js |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/js/ui/popupMenu.js b/js/ui/popupMenu.js
index 5123696..eb3bd30 100644
--- a/js/ui/popupMenu.js
+++ b/js/ui/popupMenu.js
@@ -1682,9 +1682,7 @@ const PopupComboBoxMenuItem = new Lang.Class({
     _getTopMenu: function() {
         let actor = this.actor.get_parent();
         while (actor) {
-            if (actor._delegate &&
-                (actor._delegate instanceof PopupMenu ||
-                 actor._delegate instanceof PopupComboMenu))
+            if (actor._delegate && actor._delegate instanceof PopupMenu)
                 return actor._delegate;
 
             actor = actor.get_parent();


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]