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



commit a0aa383d8ac26d0f5faf3a65afee23fd1b13607d
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 1412340..072b4e6 100644
--- a/wizard/main.c
+++ b/wizard/main.c
@@ -276,6 +276,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]