@@ -21,8 +21,8 @@ import QtQuick 2.0
2121import Ubuntu.Components 0.1
2222import Unity.Indicators 0.1 as Indicators
2323
24−Indicators.IndicatorIcon {
25− id: indicatorIcon
24+Indicators.IndicatorWidget {
25+ id: indicatorWidget
2626
2727 width: networkIcon.width + units.gu(1)
2828
@@ -34,8 +34,8 @@ Indicators.IndicatorIcon {
3434 objectName: "itemImage"
3535 source: get_icon_for_signal(connectionState, signalStrength)
3636 visible: source != ""
37− height: indicatorIcon.iconSize
38− width: indicatorIcon.iconSize
37+ height: indicatorWidget.iconSize
38+ width: indicatorWidget.iconSize
3939 anchors {
4040 verticalCenter: parent.verticalCenter
4141 horizontalCenter: parent.horizontalCenter
@@ -44,29 +44,29 @@ Indicators.IndicatorIcon {
4444
4545 function parseRootElement(type, data) {
4646 if (type == "com.canonical.indicator.root.network")
47− return true
48− return false
47+ return true;
48+ return false;
4949 }
5050
5151 onActionStateChanged: {
5252 if (action == undefined || !action.valid) {
53− return
53+ return;
5454 }
5555
5656 if (action.state == undefined) {
57− connectionState = 0
58− return
57+ connectionState = 0;
58+ return;
5959 }
6060
61− connectionState = action.state[1]
61+ connectionState = action.state[1];
6262 if (connectionState == 2) {
63− signalStrength = action.state[2]
63+ signalStrength = action.state[2];
6464 }
6565 }
6666
6767 NumberAnimation {
6868 id: activation_animation
69− target: indicatorIcon
69+ target: indicatorWidget
7070 property: "signalStrength"
7171 from: 0
7272 to: 100
@@ -101,16 +101,16 @@ Indicators.IndicatorIcon {
101101 function get_icon_for_signal(con_state, value) {
102102 if (con_state >= 1 && con_state <= 3) {
103103 if (value == 0) {
104− return "image://gicon/nm-signal-00"
104+ return "image://gicon/nm-signal-00";
105105 } else if (value <= 25) {
106− return "image://gicon/nm-signal-25"
106+ return "image://gicon/nm-signal-25";
107107 } else if (value <= 50) {
108− return "image://gicon/nm-signal-50"
108+ return "image://gicon/nm-signal-50";
109109 } else if (value <= 75) {
110− return "image://gicon/nm-signal-75"
110+ return "image://gicon/nm-signal-75";
111111 }
112− return "image://gicon/nm-signal-100"
112+ return "image://gicon/nm-signal-100";
113113 }
114− return "image://gicon/wifi-none"
114+ return "image://gicon/wifi-none";
115115 }
116116}