[gnome-bluetooth/gnome-3-4] wizard: Fix Simple Pairing never succeeding



commit 48364bb1cb37b13ee26d6a86980287f4d3a1f7a6
Author: Sjoerd Simons <sjoerd luon net>
Date:   Sat Jun 30 10:45:45 2012 +0200

    wizard: Fix Simple Pairing never succeeding
    
    The bluez RequestConfirmation call expect either an empty message (on
    success) or an error (on failure) as return. The code tries to return
    a string on success though, contrary to what the internal
    introspection data says causing gdbus to just throw a warning
    and bluez never getting a response, causing pairing to fail.
    
    Fix RequestConfirmation return value
    
    https://bugzilla.gnome.org/show_bug.cgi?id=679190

 wizard/main.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
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);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]