From 4132ccae334119a25a8bb1f00c0634e26f29c268 Mon Sep 17 00:00:00 2001 From: Giovanni Campagna Date: Tue, 14 Jun 2011 18:24:59 +0200 Subject: [PATCH] NetworkMenu: place network items in the right position _createNetworkItem was always appending access point at the end of the menu when their position was < 5 (NUM_VISIBLE_NETWORKS), ignoring the presence or absence of _overflowItem, which thus ended in the middle of the network list. Fix that. https://bugzilla.gnome.org/show_bug.cgi?id=652313 --- js/ui/status/network.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/ui/status/network.js b/js/ui/status/network.js index 454b67392..3983703c5 100644 --- a/js/ui/status/network.js +++ b/js/ui/status/network.js @@ -1531,7 +1531,7 @@ NMDeviceWireless.prototype = { })); } if (position < NUM_VISIBLE_NETWORKS) - this.section.addMenuItem(apObj.item); + this.section.addMenuItem(apObj.item, position); else { if (!this._overflowItem) { this._overflowItem = new PopupMenu.PopupSubMenuMenuItem(_("More..."));