summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSjoerd Simons <sjoerd@luon.net>2012-06-30 10:45:45 +0200
committerBastien Nocera <hadess@hadess.net>2012-07-02 11:13:25 +0100
commitde1d6ed1672c9788a23ec1aef431b8009775311c (patch)
tree723e3545ab94323b6721204317e6df3211c962d6
parent3c59b7eedbc395272c65a418fec049ae1cee0644 (diff)
downloadgnome-bluetooth-de1d6ed1672c9788a23ec1aef431b8009775311c.tar.gz
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
-rw-r--r--wizard/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/wizard/main.c b/wizard/main.c
index 417c84c0..e7cc9ccc 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);