@@ -27,8 +27,9 @@ Indicators.IndicatorWidget {
27 width: networkIcon.width + units.gu(1)
27 width: networkIcon.width + units.gu(1)
29 property int signalStrength: 0
29 property int signalStrength: 0
30− property int connectionState: 0
30+ property int connectionState: Indicators.ConnectionState.Initial
32+ // FIXME : Should us Ubuntu.Icon . results in low res images
33 id: networkIcon
34 id: networkIcon
34 objectName: "itemImage"
35 objectName: "itemImage"
@@ -36,15 +37,13 @@ Indicators.IndicatorWidget {
36 visible: source != ""
37 visible: source != ""
37 height: indicatorWidget.iconSize
38 height: indicatorWidget.iconSize
38 width: indicatorWidget.iconSize
39 width: indicatorWidget.iconSize
39− anchors {
40+ anchors.centerIn: parent
40− verticalCenter: parent.verticalCenter
41− horizontalCenter: parent.horizontalCenter
45 function parseRootElement(type, data) {
43 function parseRootElement(type, data) {
46− if (type == "com.canonical.indicator.root.network")
44+ if (type == "com.canonical.indicator.root.network") {
47 return true;
45 return true;
48 return false;
47 return false;
@@ -77,22 +76,22 @@ Indicators.IndicatorWidget {
79 name: "unknown"
78 name: "unknown"
80− when: connectionState > 3 || connectionState < 1
79+ when: connectionState > Indicators.ConnectionState.Deactivating || connectionState < Indicators.ConnectionState.Activating
81 PropertyChanges { target: activation_animation; running: false }
80 PropertyChanges { target: activation_animation; running: false }
84 name: "activating"
83 name: "activating"
85− when: connectionState == 1
84+ when: connectionState == Indicators.ConnectionState.Activating
86 PropertyChanges { target: activation_animation; running: true }
85 PropertyChanges { target: activation_animation; running: true }
89 name: "activated"
88 name: "activated"
90− when: connectionState == 2
89+ when: connectionState == Indicators.ConnectionState.Activated
91 PropertyChanges { target: activation_animation; running: false }
90 PropertyChanges { target: activation_animation; running: false }
94 name: "deactivating"
93 name: "deactivating"
95− when: connectionState == 3
94+ when: connectionState == Indicators.ConnectionState.Deactivating
96 PropertyChanges { target: activation_animation; running: true }
95 PropertyChanges { target: activation_animation; running: true }