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
This commit is contained in:
Jasper St. Pierre 2013-02-17 20:02:09 -05:00
parent 049695b914
commit 44e4cbf04a

View File

@ -1682,9 +1682,7 @@ const PopupComboBoxMenuItem = new Lang.Class({
_getTopMenu: function() { _getTopMenu: function() {
let actor = this.actor.get_parent(); let actor = this.actor.get_parent();
while (actor) { while (actor) {
if (actor._delegate && if (actor._delegate && actor._delegate instanceof PopupMenu)
(actor._delegate instanceof PopupMenu ||
actor._delegate instanceof PopupComboMenu))
return actor._delegate; return actor._delegate;
actor = actor.get_parent(); actor = actor.get_parent();