Comment 4 for bug 752969

Revision history for this message
Michael Terry (mterry) wrote :

Note that if you're applying this in Fedora like it seems you are, there was one more instance of NM_STATE_CONNECTED that had to be cleaned up in that file:

=== modified file 'common/Network.vala'
--- common/Network.vala 2011-04-06 22:11:14 +0000
+++ common/Network.vala 2011-04-06 23:29:54 +0000
@@ -112,7 +112,14 @@
     if (signal_name == "StateChanged") {
       uint32 state;
       parameters.get("(u)", out state);
- update_status(state == NM_STATE_CONNECTED ? Status.ONLINE : Status.OFFLIN
+
+ if (state == NM_OLD_STATE_CONNECTED ||
+ state == NM_STATE_CONNECTED_LOCAL ||
+ state == NM_STATE_CONNECTED_SITE ||
+ state == NM_STATE_CONNECTED_GLOBAL)
+ update_status(Status.ONLINE);
+ else
+ update_status(Status.OFFLINE);
     }
   }
 }