diff src/bluetooth/agent.c @ 2867:dc22e3d2e56e

fixed bonding an allready bonded device bug
author Paula Stanciu <paula.stanciu@gmail.com>
date Thu, 07 Aug 2008 12:11:09 +0300
parents 671cdfc2d62d
children 455e6e37feae
line wrap: on
line diff
--- a/src/bluetooth/agent.c	Mon Aug 04 06:49:41 2008 +0300
+++ b/src/bluetooth/agent.c	Thu Aug 07 12:11:09 2008 +0300
@@ -199,6 +199,7 @@
         GError *error;
         error = g_error_new(AGENT_ERROR, AGENT_ERROR_REJECT,
                 "Pairing request rejected");
+        printf("passkey error\n");
         dbus_g_method_return_error(input->context, error);
     }
 
@@ -339,10 +340,11 @@
     /* translators: Whether to grant access to a particular service
      * to the device mentioned */
 
-    //	g_signal_connect(G_OBJECT(dialog), "response",
-    //				G_CALLBACK(auth_callback), input);
+   /* 	g_signal_connect(G_OBJECT(dialog), "response",
+    				G_CALLBACK(auth_callback), input);
 
-    //enable_blinking();
+    enable_blinking();
+    */
 }
 
 typedef struct {
@@ -392,9 +394,6 @@
     g_printf("new passkey agent \n");
     return agent;
 }
-
-
-
 static gboolean passkey_agent_request(PasskeyAgent *agent,
         const char *path, const char *address,
         DBusGMethodInvocation *context)
@@ -816,6 +815,7 @@
 	text = g_strdup_printf(_("Removed bonding with %s"), device);
 
 	g_free(device);
+    printf("bonding removed");
 
 //	show_notification(adapter ? adapter : _("Bluetooth device"),
 //						text, NULL, 6000, NULL);