From c1ce02f2b8cd198712606888d08b36f1e7aefe39 Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Mon, 5 Aug 2013 16:48:17 -0500 Subject: fully implement the bluez/device backend. in the desktop profile, add menuitems for the devices. --- src/killswitch.vala | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/killswitch.vala') diff --git a/src/killswitch.vala b/src/killswitch.vala index cf5c6c8..fc7978c 100644 --- a/src/killswitch.vala +++ b/src/killswitch.vala @@ -22,8 +22,7 @@ * either by software (e.g., a session configuration setting) * or by hardware (e.g., user disabled it via a physical switch on her laptop). * - * The Bluetooth class uses this as a backend for its 'blocked' property. - * Other code can't even see this, so use Bluetooth.blocked instead. :) + * KillswitchBluetooth uses this as a backend for its Bluetooth.blocked property. */ public class KillSwitch: Object { @@ -50,7 +49,7 @@ public class RfKillSwitch: KillSwitch var bwritten = Posix.write (fd, &event, sizeof(Linux.RfKillEvent)); if (bwritten == -1) - warning ("Could not write rfkill event: %s", strerror(errno)); + warning (@"Could not write rfkill event: $(strerror(errno))"); } private class Entry @@ -90,7 +89,7 @@ public class RfKillSwitch: KillSwitch message ("fd is %d", fd); if (fd == -1) { - warning (@"Can't open $path: $(strerror(errno)); KillSwitch disable"); + warning (@"Can't open $path for use as a killswitch backend: $(strerror(errno))"); } else { -- cgit v1.2.3