From 35ab3546885e985e244768d17d58a025e6af4be5 Mon Sep 17 00:00:00 2001 From: Robert Ancell Date: Tue, 4 Dec 2012 16:41:13 +1300 Subject: Correctly set icon --- src/indicator-bluetooth.vala | 7 +++++++ 1 file changed, 7 insertions(+) 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; -- cgit v1.2.3