[gnome-bluetooth] applet: Fix PIN code return values
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-bluetooth] applet: Fix PIN code return values
- Date: Wed, 28 Sep 2011 13:50:03 +0000 (UTC)
commit 7684961acd88796c8fae2ce8ed512374ee23671f
Author: Bastien Nocera <hadess hadess net>
Date: Wed Sep 28 14:42:29 2011 +0100
applet: Fix PIN code return values
applet/bluetooth-applet.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/applet/bluetooth-applet.c b/applet/bluetooth-applet.c
index a1a0f4e..f5ac5ec 100644
--- a/applet/bluetooth-applet.c
+++ b/applet/bluetooth-applet.c
@@ -192,7 +192,7 @@ bluetooth_applet_agent_reply_pincode (BluetoothApplet *self,
if (pincode != NULL) {
g_dbus_method_invocation_return_value (invocation,
- g_variant_new_string (pincode));
+ g_variant_new ("(s)", pincode));
} else {
GError *error;
error = g_error_new (AGENT_ERROR, AGENT_ERROR_REJECT,
@@ -225,7 +225,7 @@ bluetooth_applet_agent_reply_passkey (BluetoothApplet *self,
if (passkey != -1) {
g_dbus_method_invocation_return_value (invocation,
- g_variant_new_int32 (passkey));
+ g_variant_new ("(u)", passkey));
} else {
GError *error;
error = g_error_new (AGENT_ERROR, AGENT_ERROR_REJECT,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]