[gnome-shell] NetworkMenu: place network items in the right position
- From: Giovanni Campagna <gcampagna src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] NetworkMenu: place network items in the right position
- Date: Mon, 27 Jun 2011 15:20:05 +0000 (UTC)
commit 4132ccae334119a25a8bb1f00c0634e26f29c268
Author: Giovanni Campagna <gcampagna src gnome org>
Date: Tue Jun 14 18:24:59 2011 +0200
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 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/js/ui/status/network.js b/js/ui/status/network.js
index 454b673..3983703 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..."));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]