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); } } }
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'
parameters. get("(u) ", out state); STATE_CONNECTED || CONNECTED_ LOCAL || CONNECTED_ SITE || CONNECTED_ GLOBAL) status( Status. ONLINE) ; status( Status. OFFLINE) ;
--- 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;
- update_status(state == NM_STATE_CONNECTED ? Status.ONLINE : Status.OFFLIN
+
+ if (state == NM_OLD_
+ state == NM_STATE_
+ state == NM_STATE_
+ state == NM_STATE_
+ update_
+ else
+ update_
}
}
}