@@ -21,8 +21,8 @@ import QtQuick 2.0
21import Ubuntu.Components 0.1
21import Ubuntu.Components 0.1
22import Unity.Indicators 0.1 as Indicators
22import Unity.Indicators 0.1 as Indicators
24−Indicators.IndicatorIcon {
24+Indicators.IndicatorWidget {
25− id: indicatorIcon
25+ id: indicatorWidget
27 width: networkIcon.width + units.gu(1)
27 width: networkIcon.width + units.gu(1)
@@ -34,8 +34,8 @@ Indicators.IndicatorIcon {
34 objectName: "itemImage"
34 objectName: "itemImage"
35 source: get_icon_for_signal(connectionState, signalStrength)
35 source: get_icon_for_signal(connectionState, signalStrength)
36 visible: source != ""
36 visible: source != ""
37− height: indicatorIcon.iconSize
37+ height: indicatorWidget.iconSize
38− width: indicatorIcon.iconSize
38+ width: indicatorWidget.iconSize
40 verticalCenter: parent.verticalCenter
40 verticalCenter: parent.verticalCenter
41 horizontalCenter: parent.horizontalCenter
41 horizontalCenter: parent.horizontalCenter
@@ -44,29 +44,29 @@ Indicators.IndicatorIcon {
45 function parseRootElement(type, data) {
45 function parseRootElement(type, data) {
46 if (type == "com.canonical.indicator.root.network")
46 if (type == "com.canonical.indicator.root.network")
47− return true
47+ return true;
48− return false
48+ return false;
51 onActionStateChanged: {
51 onActionStateChanged: {
52 if (action == undefined || !action.valid) {
52 if (action == undefined || !action.valid) {
56 if (action.state == undefined) {
56 if (action.state == undefined) {
57− connectionState = 0
57+ connectionState = 0;
61− connectionState = action.state[1]
61+ connectionState = action.state[1];
62 if (connectionState == 2) {
62 if (connectionState == 2) {
63− signalStrength = action.state[2]
63+ signalStrength = action.state[2];
67 NumberAnimation {
67 NumberAnimation {
68 id: activation_animation
68 id: activation_animation
69− target: indicatorIcon
69+ target: indicatorWidget
70 property: "signalStrength"
70 property: "signalStrength"
@@ -101,16 +101,16 @@ Indicators.IndicatorIcon {
101 function get_icon_for_signal(con_state, value) {
101 function get_icon_for_signal(con_state, value) {
102 if (con_state >= 1 && con_state <= 3) {
102 if (con_state >= 1 && con_state <= 3) {
103 if (value == 0) {
103 if (value == 0) {
104− return "image://gicon/nm-signal-00"
104+ return "image://gicon/nm-signal-00";
105 } else if (value <= 25) {
105 } else if (value <= 25) {
106− return "image://gicon/nm-signal-25"
106+ return "image://gicon/nm-signal-25";
107 } else if (value <= 50) {
107 } else if (value <= 50) {
108− return "image://gicon/nm-signal-50"
108+ return "image://gicon/nm-signal-50";
109 } else if (value <= 75) {
109 } else if (value <= 75) {
110− return "image://gicon/nm-signal-75"
110+ return "image://gicon/nm-signal-75";
112− return "image://gicon/nm-signal-100"
112+ return "image://gicon/nm-signal-100";
114− return "image://gicon/wifi-none"
114+ return "image://gicon/wifi-none";