[gnome-shell] network: Remove overflow of VPN configurations



commit f4051e810e090ff24e27320c9670772961b17179
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]