@@ -27,7 +27,7 @@ Indicators.IndicatorWidget {
2727 width: networkIcon.width + units.gu(1)
2828
2929 property int signalStrength: 0
30− property int connectionState: Indicators.ConnectionState.Initial
30+ property int connectionState: Indicators.NetworkConnection.Initial
3131
3232 // FIXME : Should us Ubuntu.Icon . results in low res images
3333 Image {
@@ -57,9 +57,9 @@ Indicators.IndicatorWidget {
5757 return;
5858 }
5959
60− connectionState = action.state[1];
61− if (connectionState == 2) {
62− signalStrength = action.state[2];
60+ connectionState = action.state[Indicators.NetworkActionState.Connection];
61+ if (connectionState == Indicators.NetworkConnection.Activated) {
62+ signalStrength = action.state[Indicators.NetworkActionState.SignalStrength];
6363 }
6464 }
6565
@@ -76,29 +76,29 @@ Indicators.IndicatorWidget {
7676 states: [
7777 State {
7878 name: "unknown"
79− when: connectionState > Indicators.ConnectionState.Deactivating || connectionState < Indicators.ConnectionState.Activating
79+ when: connectionState < Indicators.NetworkConnection.Activating || connectionState > Indicators.NetworkConnection.Deactivating
8080 PropertyChanges { target: activation_animation; running: false }
8181 },
8282 State {
8383 name: "activating"
84− when: connectionState == Indicators.ConnectionState.Activating
84+ when: connectionState == Indicators.NetworkConnection.Activating
8585 PropertyChanges { target: activation_animation; running: true }
8686 },
8787 State {
8888 name: "activated"
89− when: connectionState == Indicators.ConnectionState.Activated
89+ when: connectionState == Indicators.NetworkConnection.Activated
9090 PropertyChanges { target: activation_animation; running: false }
9191 },
9292 State {
9393 name: "deactivating"
94− when: connectionState == Indicators.ConnectionState.Deactivating
94+ when: connectionState == Indicators.NetworkConnection.Deactivating
9595 PropertyChanges { target: activation_animation; running: true }
9696 }
9797 ]
9898
9999
100100 function get_icon_for_signal(con_state, value) {
101− if (con_state >= 1 && con_state <= 3) {
101+ if (con_state >= Indicators.NetworkConnection.Activating && con_state <= Indicators.NetworkConnection.Deactivating) {
102102 if (value == 0) {
103103 return "image://gicon/nm-signal-00";
104104 } else if (value <= 25) {