[gnome-shell] network: Fix visibility of the VPN icon
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] network: Fix visibility of the VPN icon
- Date: Mon, 5 Aug 2013 19:19:53 +0000 (UTC)
commit 621810c409e8639a7fa4e205bece6a848f483fab
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Mon Jun 17 18:24:52 2013 -0400
network: Fix visibility of the VPN icon
This is a regression from e6c239d0f3318984815049abb621f6b0cb3dc85e,
where we removed the calls to hide()/show() when we had a VPN device
vs. not.
https://bugzilla.gnome.org/show_bug.cgi?id=702536
js/ui/status/network.js | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/js/ui/status/network.js b/js/ui/status/network.js
index dde566e..1fa8ebc 100644
--- a/js/ui/status/network.js
+++ b/js/ui/status/network.js
@@ -1158,7 +1158,6 @@ const NMApplet = new Lang.Class({
this.parent('network-offline-symbolic', _('Network'));
this._vpnIcon = this.addIcon(null);
- this._vpnIcon.hide();
// Device types
this._dtypes = { };
@@ -1602,5 +1601,6 @@ const NMApplet = new Lang.Class({
}
this._vpnIcon.icon_name = this._vpnSection.getIndicatorIcon();
+ this._vpnIcon.visible = (this._vpnIcon.icon_name != '');
}
});
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]