aboutsummaryrefslogtreecommitdiff
path: root/src/bluez.vala
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2013-10-10 21:22:41 +0000
committerTarmac <>2013-10-10 21:22:41 +0000
commit3145f10632a3ce7ee33e8cdaa78401d7eb881f4e (patch)
tree66b1fcec7959fce24c4f2fafa935a02f34bac312 /src/bluez.vala
parent5165b13efd79ac2fc5bb6aa902b3ecedf84634f0 (diff)
parent0932c83d16f55832d52e06b48f40d3acd3a83692 (diff)
downloadayatana-indicator-bluetooth-3145f10632a3ce7ee33e8cdaa78401d7eb881f4e.tar.gz
ayatana-indicator-bluetooth-3145f10632a3ce7ee33e8cdaa78401d7eb881f4e.tar.bz2
ayatana-indicator-bluetooth-3145f10632a3ce7ee33e8cdaa78401d7eb881f4e.zip
add an action whose state shows whether or not bluetooth is supported by the hardware, used by ubuntu-system-settings. Fixes: https://bugs.launchpad.net/bugs/1233628.
Approved by Ted Gould, PS Jenkins bot.
Diffstat (limited to 'src/bluez.vala')
-rw-r--r--src/bluez.vala2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/bluez.vala b/src/bluez.vala
index 9baacd5..8c8c1b6 100644
--- a/src/bluez.vala
+++ b/src/bluez.vala
@@ -70,6 +70,8 @@ public class Bluez: KillswitchBluetooth
private void on_default_adapter_changed (string? object_path)
{
+ supported = object_path != null;
+
if (object_path != null) try
{
debug (@"using default adapter at $object_path");