[gnome-bluetooth] properties: Update for get/set discoverable removal
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-bluetooth] properties: Update for get/set discoverable removal
- Date: Wed, 12 Oct 2011 18:22:58 +0000 (UTC)
commit 099d7878d47998c11162a8de7cf57bf1d0d433d8
Author: Bastien Nocera <hadess hadess net>
Date: Wed Oct 12 19:06:26 2011 +0100
properties: Update for get/set discoverable removal
properties/cc-bluetooth-panel.c | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/properties/cc-bluetooth-panel.c b/properties/cc-bluetooth-panel.c
index d046ee9..b55211f 100644
--- a/properties/cc-bluetooth-panel.c
+++ b/properties/cc-bluetooth-panel.c
@@ -518,9 +518,8 @@ switch_discoverable_active_changed (GtkSwitch *button,
GParamSpec *spec,
CcBluetoothPanel *self)
{
- bluetooth_client_set_discoverable (self->priv->client,
- gtk_switch_get_active (button),
- 0);
+ g_object_set (G_OBJECT (self->priv->client), "discoverable",
+ gtk_switch_get_active (button), NULL);
}
static void
@@ -531,7 +530,7 @@ cc_bluetooth_panel_update_visibility (CcBluetoothPanel *self)
char *name;
button = GTK_SWITCH (WID ("switch_discoverable"));
- discoverable = bluetooth_client_get_discoverable (self->priv->client);
+ g_object_get (G_OBJECT (self->priv->client), "discoverable", &discoverable, NULL);
g_signal_handlers_block_by_func (button, switch_discoverable_active_changed, self);
gtk_switch_set_active (button, discoverable);
g_signal_handlers_unblock_by_func (button, switch_discoverable_active_changed, self);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]