aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--NEWS4
-rw-r--r--src/indicator-bluetooth-service.vala2
-rw-r--r--src/indicator-bluetooth.vala2
3 files changed, 7 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index a3c7163..725a7b6 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,7 @@
+Overview of changes in indicator-bluetooth 0.0.3
+
+ * Set useful values for accessible description
+
Overview of changes in indicator-bluetooth 0.0.2
* Stop feedback loop when settings changed outside of indicator
diff --git a/src/indicator-bluetooth-service.vala b/src/indicator-bluetooth-service.vala
index 7481df6..14dc090 100644
--- a/src/indicator-bluetooth-service.vala
+++ b/src/indicator-bluetooth-service.vala
@@ -193,9 +193,11 @@ public class BluetoothIndicator
var enabled = state == GnomeBluetooth.KillswitchState.UNBLOCKED;
bluetooth_service._icon_name = enabled ? "bluetooth-active" : "bluetooth-disabled";
+ bluetooth_service._accessible_description = enabled ? _("Bluetooth: On") : _("Bluetooth: Off");
var builder = new VariantBuilder (VariantType.ARRAY);
builder.add ("{sv}", "IconName", new Variant.string (bluetooth_service._icon_name));
+ builder.add ("{sv}", "AccessibleDescription", new Variant.string (bluetooth_service._accessible_description));
try
{
var properties = new Variant ("(sa{sv}as)", "com.canonical.indicator.bluetooth.service", builder, null);
diff --git a/src/indicator-bluetooth.vala b/src/indicator-bluetooth.vala
index 87a26af..98a001e 100644
--- a/src/indicator-bluetooth.vala
+++ b/src/indicator-bluetooth.vala
@@ -15,7 +15,7 @@ public class BluetoothIndicator : Indicator.Object
private Gtk.Image image;
private DbusmenuGtk.Menu menu;
private BluetoothService proxy;
- private string accessible_description = "Bluetooth";
+ private string accessible_description = "Bluetooth: On";
construct
{