1
0
gnome-bluetooth/gnome-bluetooth-fix-pairing.patch

32 lines
1.2 KiB
Diff

From 46212ad97de694db45af525cd200c52e6eafb93b Mon Sep 17 00:00:00 2001
From: Sjoerd Simons <sjoerd@luon.net>
Date: Sat, 30 Jun 2012 10:45:45 +0200
Subject: [PATCH 1/2] Fix return of RequestConfirmation call
The bluez RequestConfirmation call expect either an empty message (on
success) or an error (on failure) as return. For some reason the code
tries to return a string on success though, contrary to even what the
internal introspection data says causing gdbus to just throw a warning
and bluez never getting a response... Causing pairing to fail.
---
wizard/main.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/wizard/main.c b/wizard/main.c
index 417c84c..e7cc9cc 100644
--- a/wizard/main.c
+++ b/wizard/main.c
@@ -261,7 +261,7 @@ matches_cb (GtkButton *button,
invocation = g_object_get_data (G_OBJECT (button), "invocation");
gtk_widget_set_sensitive (does_not_match_button, FALSE);
gtk_widget_set_sensitive (matches_button, FALSE);
- g_dbus_method_invocation_return_value (invocation, g_variant_new ("(s)", ""));
+ g_dbus_method_invocation_return_value (invocation, NULL);
g_object_set_data (G_OBJECT(does_not_match_button), "invocation", NULL);
g_object_set_data (G_OBJECT(matches_button), "invocation", NULL);
--
1.7.10