[gnome-bluetooth/meego-dev] Revert making default-adaptor-powered read/write



commit 34609462c736499652cc048bec64e68e89c4d79a
Author: Ross Burton <ross linux intel com>
Date:   Mon Mar 22 10:30:15 2010 +0000

    Revert making default-adaptor-powered read/write

 lib/bluetooth-client.c |   32 +-------------------------------
 1 files changed, 1 insertions(+), 31 deletions(-)
---
diff --git a/lib/bluetooth-client.c b/lib/bluetooth-client.c
index 6eb8de4..c56e400 100644
--- a/lib/bluetooth-client.c
+++ b/lib/bluetooth-client.c
@@ -1237,35 +1237,6 @@ bluetooth_client_get_property (GObject        *object,
 	}
 }
 
-static void
-bluetooth_client_set_property (GObject      *object,
-			       guint         property_id,
-			       const GValue *value,
-			       GParamSpec   *pspec)
-{
-	switch (property_id) {
-	case PROP_DEFAULT_ADAPTER_POWERED:
-		{
-			DBusGProxy *adapter;
-
-			adapter = bluetooth_client_get_default_adapter (BLUETOOTH_CLIENT (object));
-			if (adapter == NULL)
-				return;
-
-			dbus_g_proxy_call (adapter, "SetProperty", NULL,
-					   G_TYPE_STRING, "Powered",
-					   G_TYPE_VALUE, value,
-					   G_TYPE_INVALID, G_TYPE_INVALID);
-
-			g_object_unref (adapter);
-		}
-		break;
-	default:
-		G_OBJECT_WARN_INVALID_PROPERTY_ID(object, property_id, pspec);
-		break;
-	}
-}
-
 static void bluetooth_client_finalize(GObject *client)
 {
 	BluetoothClientPrivate *priv = BLUETOOTH_CLIENT_GET_PRIVATE(client);
@@ -1303,7 +1274,6 @@ static void bluetooth_client_class_init(BluetoothClientClass *klass)
 
 	object_class->finalize = bluetooth_client_finalize;
 	object_class->get_property = bluetooth_client_get_property;
-	object_class->set_property = bluetooth_client_set_property;
 
 
 	g_object_class_install_property (object_class, PROP_DEFAULT_ADAPTER,
@@ -1311,7 +1281,7 @@ static void bluetooth_client_class_init(BluetoothClientClass *klass)
 							      NULL, G_PARAM_READABLE));
 	g_object_class_install_property (object_class, PROP_DEFAULT_ADAPTER_POWERED,
 					 g_param_spec_boolean ("default-adapter-powered", NULL, NULL,
-					 		       FALSE, G_PARAM_READWRITE));
+					 		       FALSE, G_PARAM_READABLE));
 	g_object_class_install_property (object_class, PROP_DEFAULT_ADAPTER_DISCOVERABLE,
 					 g_param_spec_boolean ("default-adapter-discoverable", NULL, NULL,
 							      FALSE, G_PARAM_READABLE));



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