Sat, 28 Jul 2007 08:47:44 +0000
- Delegate all button enabling/disabling in tls_peers_mgmt to its "is
anything selected in the window?" function.
| pidgin/gtkcertmgr.c | file | annotate | diff | comparison | revisions |
--- a/pidgin/gtkcertmgr.c Sat Jul 28 08:33:30 2007 +0000 +++ b/pidgin/gtkcertmgr.c Sat Jul 28 08:47:44 2007 +0000 @@ -269,11 +269,9 @@ g_signal_connect(G_OBJECT(deletebutton), "clicked", G_CALLBACK(tls_peers_mgmt_delete_cb), NULL); - /* Disable all the buttons */ - gtk_widget_set_sensitive(importbutton, FALSE); - gtk_widget_set_sensitive(exportbutton, FALSE); - gtk_widget_set_sensitive(infobutton, FALSE); - gtk_widget_set_sensitive(deletebutton, FALSE); + /* Call the "selection changed" callback, which will probably disable + all the buttons since nothing is selected yet */ + tls_peers_mgmt_select_chg_cb(select, NULL); /* Bind us to the tls_peers pool */ tpm_dat->tls_peers = purple_certificate_find_pool("x509", "tls_peers");