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
This commit is contained in:
parent
68bf4e7b70
commit
7932585656
@ -113,12 +113,11 @@ NMNetworkMenuItem.prototype = {
|
|||||||
style_class: 'popup-menu-icon' });
|
style_class: 'popup-menu-icon' });
|
||||||
this._icons.add_actor(this._signalIcon);
|
this._icons.add_actor(this._signalIcon);
|
||||||
|
|
||||||
|
this._secureIcon = new St.Icon({ style_class: 'popup-menu-icon' });
|
||||||
if (this.bestAP._secType != NMAccessPointSecurity.UNKNOWN &&
|
if (this.bestAP._secType != NMAccessPointSecurity.UNKNOWN &&
|
||||||
this.bestAP._secType != NMAccessPointSecurity.NONE) {
|
this.bestAP._secType != NMAccessPointSecurity.NONE)
|
||||||
this._secureIcon = new St.Icon({ icon_name: 'network-wireless-encrypted',
|
this._secureIcon.icon_name = 'network-wireless-encrypted';
|
||||||
style_class: 'popup-menu-icon' });
|
this._icons.add_actor(this._secureIcon);
|
||||||
this._icons.add_actor(this._secureIcon);
|
|
||||||
}
|
|
||||||
|
|
||||||
this._accessPoints = [ ];
|
this._accessPoints = [ ];
|
||||||
for (let i = 0; i < accessPoints.length; i++) {
|
for (let i = 0; i < accessPoints.length; i++) {
|
||||||
|
Loading…
Reference in New Issue
Block a user