comparison src/gtkaccount.c @ 7758:71fea13c6fb8

[gaim-migrate @ 8403] Set the buttons in the account editor to be insensitive when nothing is selected. committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Fri, 05 Dec 2003 08:45:05 +0000
parents 1f035c12f6f5
children 5f1908a49c78
comparison
equal deleted inserted replaced
7757:72727edb37ef 7758:71fea13c6fb8
1835 } 1835 }
1836 1836
1837 static void 1837 static void
1838 account_selected_cb(GtkTreeSelection *sel, AccountsWindow *dialog) 1838 account_selected_cb(GtkTreeSelection *sel, AccountsWindow *dialog)
1839 { 1839 {
1840 gtk_widget_set_sensitive(dialog->modify_button, TRUE); 1840 gboolean sensitive;
1841 gtk_widget_set_sensitive(dialog->delete_button, TRUE); 1841
1842 sensitive = gtk_tree_selection_get_selected(sel, NULL, NULL);
1843
1844 gtk_widget_set_sensitive(dialog->modify_button, sensitive);
1845 gtk_widget_set_sensitive(dialog->delete_button, sensitive);
1842 } 1846 }
1843 1847
1844 static GtkWidget * 1848 static GtkWidget *
1845 create_accounts_list(AccountsWindow *dialog) 1849 create_accounts_list(AccountsWindow *dialog)
1846 { 1850 {