aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRobert Ancell <robert.ancell@canonical.com>2013-01-11 11:44:59 +1300
committerRobert Ancell <robert.ancell@canonical.com>2013-01-11 11:44:59 +1300
commit29eaa61699c9c5b217d2170586b301c54f034bdf (patch)
tree1aaad3f339f2968ab3f8d137c059e497ffae5e33 /src
parentf5413a11534f8afd652c1d7baddb1277cdf92c27 (diff)
downloadayatana-indicator-bluetooth-29eaa61699c9c5b217d2170586b301c54f034bdf.tar.gz
ayatana-indicator-bluetooth-29eaa61699c9c5b217d2170586b301c54f034bdf.tar.bz2
ayatana-indicator-bluetooth-29eaa61699c9c5b217d2170586b301c54f034bdf.zip
Set useful values for accessible description
Diffstat (limited to 'src')
-rw-r--r--src/indicator-bluetooth-service.vala2
-rw-r--r--src/indicator-bluetooth.vala2
2 files changed, 3 insertions, 1 deletions
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
{