@@ -27,8 +27,9 @@ Indicators.IndicatorWidget {
2727 width: networkIcon.width + units.gu(1)
2828
2929 property int signalStrength: 0
30− property int connectionState: 0
30+ property int connectionState: Indicators.ConnectionState.Initial
3131
32+ // FIXME : Should us Ubuntu.Icon . results in low res images
3233 Image {
3334 id: networkIcon
3435 objectName: "itemImage"
@@ -36,15 +37,13 @@ Indicators.IndicatorWidget {
3637 visible: source != ""
3738 height: indicatorWidget.iconSize
3839 width: indicatorWidget.iconSize
39− anchors {
40− verticalCenter: parent.verticalCenter
41− horizontalCenter: parent.horizontalCenter
42− }
40+ anchors.centerIn: parent
4341 }
4442
4543 function parseRootElement(type, data) {
46− if (type == "com.canonical.indicator.root.network")
44+ if (type == "com.canonical.indicator.root.network") {
4745 return true;
46+ }
4847 return false;
4948 }
5049
@@ -77,22 +76,22 @@ Indicators.IndicatorWidget {
7776 states: [
7877 State {
7978 name: "unknown"
80− when: connectionState > 3 || connectionState < 1
79+ when: connectionState > Indicators.ConnectionState.Deactivating || connectionState < Indicators.ConnectionState.Activating
8180 PropertyChanges { target: activation_animation; running: false }
8281 },
8382 State {
8483 name: "activating"
85− when: connectionState == 1
84+ when: connectionState == Indicators.ConnectionState.Activating
8685 PropertyChanges { target: activation_animation; running: true }
8786 },
8887 State {
8988 name: "activated"
90− when: connectionState == 2
89+ when: connectionState == Indicators.ConnectionState.Activated
9190 PropertyChanges { target: activation_animation; running: false }
9291 },
9392 State {
9493 name: "deactivating"
95− when: connectionState == 3
94+ when: connectionState == Indicators.ConnectionState.Deactivating
9695 PropertyChanges { target: activation_animation; running: true }
9796 }
9897 ]