[gnome-bluetooth/gnome-3-10] wizard: Set devices as trusted while pairing

commit 9582684618c25908ccab6906a4e75643b60eaa34
Author: Bastien Nocera <hadess hadess net>
Date:   Mon Nov 25 18:19:01 2013 +0100

    wizard: Set devices as trusted while pairing
    The simple-agent does the same, setting the device as trusted
    before returning the PIN code.

 wizard/main.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/wizard/main.c b/wizard/main.c
index 7eb9d62..51b2316 100644
--- a/wizard/main.c
+++ b/wizard/main.c
@@ -242,6 +242,8 @@ pincode_callback (GDBusMethodInvocation *invocation,
        gtk_widget_show (button_cancel);
+       bluetooth_client_set_trusted (client, g_dbus_proxy_get_object_path (device), TRUE);
        g_debug ("Using pincode \"%s\" for '%s' (%s)", user_pincode, target_name, target_address);
        g_dbus_method_invocation_return_value (invocation,
                                               g_variant_new ("(s)", user_pincode));

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