aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRobert Ancell <robert.ancell@canonical.com>2012-12-04 16:41:13 +1300
committerRobert Ancell <robert.ancell@canonical.com>2012-12-04 16:41:13 +1300
commit35ab3546885e985e244768d17d58a025e6af4be5 (patch)
tree8164217ca77ebf2359be5baace8f496d5b6b0bd8 /src
parent7dd1e1aaf27d3efded474eb49060131e4a12a6fe (diff)
downloadayatana-indicator-bluetooth-35ab3546885e985e244768d17d58a025e6af4be5.tar.gz
ayatana-indicator-bluetooth-35ab3546885e985e244768d17d58a025e6af4be5.tar.bz2
ayatana-indicator-bluetooth-35ab3546885e985e244768d17d58a025e6af4be5.zip
Correctly set icon
Diffstat (limited to 'src')
-rw-r--r--src/indicator-bluetooth.vala7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/indicator-bluetooth.vala b/src/indicator-bluetooth.vala
index 3f3d583..1186961 100644
--- a/src/indicator-bluetooth.vala
+++ b/src/indicator-bluetooth.vala
@@ -190,11 +190,13 @@ public class BluetoothIndicator : AppIndicator.Indicator
if (state == GnomeBluetooth.KillswitchState.HARD_BLOCKED)
{
+ icon_name = "bluetooth-inactive";
status_item.label = _("Bluetooth: Disabled");
enable_item.visible = false;
}
if (state == GnomeBluetooth.KillswitchState.SOFT_BLOCKED)
{
+ icon_name = "bluetooth-inactive";
status_item.label = _("Bluetooth: Off");
enable_item.label = _("Turn on Bluetooth");
enable_item.visible = true;
@@ -208,6 +210,11 @@ public class BluetoothIndicator : AppIndicator.Indicator
enable_value = true;
}
+ if (state == GnomeBluetooth.KillswitchState.UNBLOCKED)
+ icon_name = "bluetooth-active";
+ else
+ icon_name = "bluetooth-disabled";
+
/* Disable devices when locked */
visible_item.visible = state == GnomeBluetooth.KillswitchState.UNBLOCKED;
devices_separator.visible = state == GnomeBluetooth.KillswitchState.UNBLOCKED;