From 7932585656f5855c9efb97db9e5005adb2c07c2b Mon Sep 17 00:00:00 2001 From: Dan Winship Date: Tue, 29 Mar 2011 11:45:45 -0400 Subject: [PATCH] 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 file changed, 4 insertions(+), 5 deletions(-) diff --git a/js/ui/status/network.js b/js/ui/status/network.js index 300c08dd2..88521888a 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++) {