# HG changeset patch # User Christian Hammond # Date 1070613905 0 # Node ID 71fea13c6fb8a0d23af58b95a1ae2d6ad263980e # Parent 72727edb37ef3795984fbd5d000209caa2af78e9 [gaim-migrate @ 8403] Set the buttons in the account editor to be insensitive when nothing is selected. committer: Tailor Script diff -r 72727edb37ef -r 71fea13c6fb8 src/gtkaccount.c --- a/src/gtkaccount.c Fri Dec 05 05:22:18 2003 +0000 +++ b/src/gtkaccount.c Fri Dec 05 08:45:05 2003 +0000 @@ -1837,8 +1837,12 @@ static void account_selected_cb(GtkTreeSelection *sel, AccountsWindow *dialog) { - gtk_widget_set_sensitive(dialog->modify_button, TRUE); - gtk_widget_set_sensitive(dialog->delete_button, TRUE); + gboolean sensitive; + + sensitive = gtk_tree_selection_get_selected(sel, NULL, NULL); + + gtk_widget_set_sensitive(dialog->modify_button, sensitive); + gtk_widget_set_sensitive(dialog->delete_button, sensitive); } static GtkWidget *