[gnome-bluetooth] lib: Fix some bizarre use of curly braces
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-bluetooth] lib: Fix some bizarre use of curly braces
- Date: Thu, 26 Jul 2012 15:56:15 +0000 (UTC)
commit 6f8bd954454016e91a6f3aea22c7c1a47f232fa1
Author: Bastien Nocera <hadess hadess net>
Date: Mon Jul 23 18:15:13 2012 +0100
lib: Fix some bizarre use of curly braces
Wrong place for a switch statement...
lib/bluetooth-chooser-button.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/lib/bluetooth-chooser-button.c b/lib/bluetooth-chooser-button.c
index 917f3c2..1648f9e 100644
--- a/lib/bluetooth-chooser-button.c
+++ b/lib/bluetooth-chooser-button.c
@@ -282,12 +282,13 @@ bluetooth_chooser_button_set_property (GObject *object, guint property_id, const
g_return_if_fail (BLUETOOTH_IS_CHOOSER_BUTTON (object));
button = BLUETOOTH_CHOOSER_BUTTON (object);
- switch (property_id)
+ switch (property_id) {
case PROP_DEVICE: {
const char *str = g_value_get_string (value);
g_return_if_fail (str == NULL || bluetooth_verify_address (str));
set_btdevname (button, str, NULL, NULL);
break;
+ }
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]