aboutsummaryrefslogtreecommitdiff
path: root/src/killswitch.vala
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2013-08-05 16:48:17 -0500
committerCharles Kerr <charles.kerr@canonical.com>2013-08-05 16:48:17 -0500
commitc1ce02f2b8cd198712606888d08b36f1e7aefe39 (patch)
tree070c84ca09c0041eea98cd4be6be6cc97008470d /src/killswitch.vala
parent9837ce82575d089b52269ff600820d565be3fd22 (diff)
downloadayatana-indicator-bluetooth-c1ce02f2b8cd198712606888d08b36f1e7aefe39.tar.gz
ayatana-indicator-bluetooth-c1ce02f2b8cd198712606888d08b36f1e7aefe39.tar.bz2
ayatana-indicator-bluetooth-c1ce02f2b8cd198712606888d08b36f1e7aefe39.zip
fully implement the bluez/device backend. in the desktop profile, add menuitems for the devices.
Diffstat (limited to 'src/killswitch.vala')
-rw-r--r--src/killswitch.vala7
1 files changed, 3 insertions, 4 deletions
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
{