[gnome-bluetooth] properties: Fix incorrect visibility



commit 51173b16a603aff413b7c2bde4a49590cd94c56d
Author: Bastien Nocera <hadess hadess net>
Date:   Thu Oct 13 17:42:27 2011 +0100

    properties: Fix incorrect visibility
    
    Not "discoverable" but "default-adapter-discoverable".

 properties/cc-bluetooth-panel.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/properties/cc-bluetooth-panel.c b/properties/cc-bluetooth-panel.c
index b805543..eb1ae2b 100644
--- a/properties/cc-bluetooth-panel.c
+++ b/properties/cc-bluetooth-panel.c
@@ -518,7 +518,7 @@ switch_discoverable_active_changed (GtkSwitch        *button,
 				    GParamSpec       *spec,
 				    CcBluetoothPanel *self)
 {
-	g_object_set (G_OBJECT (self->priv->client), "discoverable",
+	g_object_set (G_OBJECT (self->priv->client), "default-adapter-discoverable",
 		      gtk_switch_get_active (button), NULL);
 }
 
@@ -530,7 +530,7 @@ cc_bluetooth_panel_update_visibility (CcBluetoothPanel *self)
 	char *name;
 
 	button = GTK_SWITCH (WID ("switch_discoverable"));
-	g_object_get (G_OBJECT (self->priv->client), "discoverable", &discoverable, NULL);
+	g_object_get (G_OBJECT (self->priv->client), "default-adapter-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]