[gnome-bluetooth] lib: Check for killswitch presence in test-killswitch
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-bluetooth] lib: Check for killswitch presence in test-killswitch
- Date: Thu, 13 Sep 2012 15:32:27 +0000 (UTC)
commit b25c6a681b7e79c51329d0e145724fb91bfe11c6
Author: Bastien Nocera <hadess hadess net>
Date: Fri Jul 27 10:44:16 2012 +0200
lib: Check for killswitch presence in test-killswitch
lib/test-killswitch.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/lib/test-killswitch.c b/lib/test-killswitch.c
index 5ae5652..37be4b5 100644
--- a/lib/test-killswitch.c
+++ b/lib/test-killswitch.c
@@ -21,6 +21,10 @@ int main (int argc, char **argv)
mainloop = g_main_loop_new (NULL, FALSE);
ks = bluetooth_killswitch_new ();
+ if (bluetooth_killswitch_has_killswitches (ks) == FALSE) {
+ g_message ("No killswitches");
+ return 0;
+ }
g_signal_connect (G_OBJECT (ks), "state-changed",
G_CALLBACK (state_changed_cb), NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]