gnome-bluetooth r531 - trunk/applet



Author: hadess
Date: Mon Mar 23 16:31:45 2009
New Revision: 531
URL: http://svn.gnome.org/viewvc/gnome-bluetooth?rev=531&view=rev

Log:
Add the ability to connect/disconnect when a device is clicked in the applet


Modified:
   trunk/applet/main.c

Modified: trunk/applet/main.c
==============================================================================
--- trunk/applet/main.c	(original)
+++ trunk/applet/main.c	Mon Mar 23 16:31:45 2009
@@ -328,7 +328,10 @@
 	connected = GPOINTER_TO_INT (g_object_get_data (G_OBJECT (action), "connected"));
 	path = g_object_get_data (G_OBJECT (action), "device-path");
 
-	g_message ("we should %s %s", connected ? "disconnect" : "connect", path);
+	if (connected == FALSE)
+		bluetooth_client_connect_service (client, path, NULL, NULL);
+	else
+		bluetooth_client_disconnect_service (client, path, NULL, NULL);
 }
 
 static void



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