[gnome-bluetooth] lib: pass boolean value boxed in a GVariant
- From: Daniele Forsi <dforsi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-bluetooth] lib: pass boolean value boxed in a GVariant
- Date: Fri, 25 Nov 2011 10:41:26 +0000 (UTC)
commit 34b684bbabb1d5b56ef6cf0814bff08acb1fb2a7
Author: Daniele Forsi <dforsi src gnome org>
Date: Thu Nov 24 21:43:26 2011 +0100
lib: pass boolean value boxed in a GVariant
Similar to other places in the same source file.
Fixes:
GLib-ERROR **: g_variant_new: expected GVariant of type `v' but received value has type `b'
lib/bluetooth-client.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/lib/bluetooth-client.c b/lib/bluetooth-client.c
index ccc7659..3ac521e 100644
--- a/lib/bluetooth-client.c
+++ b/lib/bluetooth-client.c
@@ -1593,7 +1593,7 @@ bluetooth_client_set_trusted (BluetoothClient *client,
device_call_set_property_sync (DEVICE (proxy),
"Trusted",
- g_variant_new_boolean (trusted),
+ g_variant_new_variant (g_variant_new_boolean (trusted)),
NULL, NULL);
g_object_unref(proxy);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]