[gnome-shell] network: fix alignment of secure vs insecure wireless icons



commit 7932585656f5855c9efb97db9e5005adb2c07c2b
Author: Dan Winship <danw gnome org>
Date:   Tue Mar 29 11:45:45 2011 -0400

    network: fix alignment of secure vs insecure wireless icons
    
    Since the icon area is end-aligned, the signal strength icon for
    insecure networks was ending up aligned with the lock icon for secure
    networks. Fix that by always including a _secureIcon, but having it be
    blank for the insecure networks.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=646121

 js/ui/status/network.js |    9 ++++-----
 1 files changed, 4 insertions(+), 5 deletions(-)
---
diff --git a/js/ui/status/network.js b/js/ui/status/network.js
index 300c08d..8852188 100644
--- a/js/ui/status/network.js
+++ b/js/ui/status/network.js
@@ -113,12 +113,11 @@ NMNetworkMenuItem.prototype = {
                                          style_class: 'popup-menu-icon' });
         this._icons.add_actor(this._signalIcon);
 
+        this._secureIcon = new St.Icon({ style_class: 'popup-menu-icon' });
         if (this.bestAP._secType != NMAccessPointSecurity.UNKNOWN &&
-            this.bestAP._secType != NMAccessPointSecurity.NONE) {
-            this._secureIcon = new St.Icon({ icon_name: 'network-wireless-encrypted',
-                                             style_class: 'popup-menu-icon' });
-            this._icons.add_actor(this._secureIcon);
-        }
+            this.bestAP._secType != NMAccessPointSecurity.NONE)
+            this._secureIcon.icon_name = 'network-wireless-encrypted';
+        this._icons.add_actor(this._secureIcon);
 
         this._accessPoints = [ ];
         for (let i = 0; i < accessPoints.length; i++) {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]