[gnome-shell/wip/aggregate-menu: 47/99] network: Remove overflow of VPN configurations
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/wip/aggregate-menu: 47/99] network: Remove overflow of VPN configurations
- Date: Wed, 12 Jun 2013 20:16:01 +0000 (UTC)
commit c44d66daebf98500799c3f52f5e2a6a00cba318a
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Mon Jun 10 15:53:56 2013 -0400
network: Remove overflow of VPN configurations
It's unlikely that somebody has more than five VPN connections
configured, and the code is
https://bugzilla.gnome.org/show_bug.cgi?id=701954
js/ui/status/network.js | 10 +---------
1 files changed, 1 insertions(+), 9 deletions(-)
---
diff --git a/js/ui/status/network.js b/js/ui/status/network.js
index 594e14d..640cfe2 100644
--- a/js/ui/status/network.js
+++ b/js/ui/status/network.js
@@ -1423,15 +1423,7 @@ const NMVPNSection = new Lang.Class({
for(let j = 0; j < this._connections.length; ++j) {
let obj = this._connections[j];
obj.item = this._createConnectionItem(obj);
-
- if (j >= NUM_VISIBLE_NETWORKS) {
- if (!this._overflowItem) {
- this._overflowItem = new PopupMenu.PopupSubMenuMenuItem(_("Moreā¦"));
- this.section.addMenuItem(this._overflowItem);
- }
- this._overflowItem.menu.addMenuItem(obj.item);
- } else
- this.section.addMenuItem(obj.item);
+ this.section.addMenuItem(obj.item);
}
} else {
this.section.actor.hide()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]