[gnome-shell] network: use the VPN state to compute the icon for VPN items



commit fc5aadd6dd8d217550f4858568cb0d5556c9a56e
Author: Giovanni Campagna <gcampagna src gnome org>
Date:   Mon Aug 19 23:30:06 2013 +0200

    network: use the VPN state to compute the icon for VPN items
    
    We watch changes in the VPN state, not the active connection state,
    so if we use the active connection state, we might miss an update
    (because the VPN property is notified before the other one)
    
    https://bugzilla.gnome.org/show_bug.cgi?id=706262

 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 20157f4..f08f57d 100644
--- a/js/ui/status/network.js
+++ b/js/ui/status/network.js
@@ -1137,7 +1137,7 @@ const NMVPNConnectionItem = new Lang.Class({
 
     getIndicatorIcon: function() {
         if (this._activeConnection) {
-            if (this._activeConnection.state == NetworkManager.ActiveConnectionState.ACTIVATING)
+            if (this._activeConnection.vpn_state < NetworkManager.VPNConnectionState.ACTIVATED)
                 return 'network-vpn-acquiring-symbolic';
             else
                 return 'network-vpn-symbolic';


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