[gnome-bluetooth] applet: Update for get/set discoverable removal
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-bluetooth] applet: Update for get/set discoverable removal
- Date: Wed, 12 Oct 2011 18:22:53 +0000 (UTC)
commit d8d67b4d466d391bb9e1140474c476d5d8d59eec
Author: Bastien Nocera <hadess hadess net>
Date: Wed Oct 12 19:06:13 2011 +0100
applet: Update for get/set discoverable removal
applet/bluetooth-applet.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/applet/bluetooth-applet.c b/applet/bluetooth-applet.c
index 9bd46f3..5894012 100644
--- a/applet/bluetooth-applet.c
+++ b/applet/bluetooth-applet.c
@@ -688,9 +688,11 @@ bluetooth_applet_disconnect_device (BluetoothApplet* applet,
gboolean
bluetooth_applet_get_discoverable (BluetoothApplet* self)
{
+ gboolean ret;
g_return_val_if_fail (BLUETOOTH_IS_APPLET (self), FALSE);
- return bluetooth_client_get_discoverable (self->client);
+ g_object_get (G_OBJECT (self->client), "discoverable", &ret, NULL);
+ return ret;
}
/**
@@ -704,7 +706,7 @@ bluetooth_applet_set_discoverable (BluetoothApplet* self, gboolean disc)
{
g_return_if_fail (BLUETOOTH_IS_APPLET (self));
- bluetooth_client_set_discoverable (self->client, disc, 0);
+ g_object_set (G_OBJECT (self->client), "discoverable", disc, NULL);
}
/**
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]