gnome-bluetooth r408 - trunk/properties



Author: hadess
Date: Sat Feb 28 20:02:41 2009
New Revision: 408
URL: http://svn.gnome.org/viewvc/gnome-bluetooth?rev=408&view=rev

Log:
Fix delete button sensitivity

It doesn't need to be disabled when we've disconnected a device.
(Closes: #573563)

Modified:
   trunk/properties/adapter.c

Modified: trunk/properties/adapter.c
==============================================================================
--- trunk/properties/adapter.c	(original)
+++ trunk/properties/adapter.c	Sat Feb 28 20:02:41 2009
@@ -181,7 +181,6 @@
 	} else {
 		gtk_button_set_label(GTK_BUTTON(adapter->button_trusted), _("Trust"));
 	}
-	gtk_widget_set_sensitive(adapter->button_delete, bonded);
 	gtk_widget_set_sensitive(adapter->button_disconnect, connected);
 }
 
@@ -230,6 +229,8 @@
 					BLUETOOTH_COLUMN_CONNECTED, &connected, -1);
 
 	update_buttons(adapter, bonded, trusted, connected);
+
+	gtk_widget_set_sensitive(adapter->button_delete, TRUE);
 }
 
 static void wizard_callback(GtkWidget *button, gpointer user_data)



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