changeset 19057:3cc03c2801ed

- Delegate all button enabling/disabling in tls_peers_mgmt to its "is anything selected in the window?" function.
author William Ehlhardt <williamehlhardt@gmail.com>
date Sat, 28 Jul 2007 08:47:44 +0000
parents 9e747806bb07
children ba99c1100e98
files pidgin/gtkcertmgr.c
diffstat 1 files changed, 3 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- 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");