[gnome-bluetooth] properties: Fix visibility of the settings buttons



commit 9f4d0b0fc993ffb123dae0b1850ac8aa7ad7d037
Author: Bastien Nocera <hadess hadess net>
Date:   Tue Feb 22 03:20:13 2011 +0000

    properties: Fix visibility of the settings buttons

 properties/cc-bluetooth-panel.c |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/properties/cc-bluetooth-panel.c b/properties/cc-bluetooth-panel.c
index 92f6a1c..4293999 100644
--- a/properties/cc-bluetooth-panel.c
+++ b/properties/cc-bluetooth-panel.c
@@ -189,11 +189,13 @@ cc_bluetooth_panel_update_properties (CcBluetoothPanel *self)
 	button = GTK_SWITCH (WID ("switch_connection"));
 	g_signal_handlers_block_by_func (button, switch_connected_active_changed, self);
 
+	/* Hide all the buttons now, and show them again if we need to */
+	gtk_widget_hide (WID ("keyboard_button"));
+	gtk_widget_hide (WID ("sound_button"));
+	gtk_widget_hide (WID ("mouse_button"));
+
 	bdaddr = bluetooth_chooser_get_selected_device (BLUETOOTH_CHOOSER (self->priv->chooser));
 	if (bdaddr == NULL) {
-		gtk_widget_hide (WID ("keyboard_button"));
-		gtk_widget_hide (WID ("sound_button"));
-		gtk_widget_hide (WID ("mouse_button"));
 		gtk_widget_set_sensitive (WID ("properties_vbox"), FALSE);
 		gtk_switch_set_active (button, FALSE);
 		gtk_label_set_text (GTK_LABEL (WID ("paired_label")), "");



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