changeset 19046:8599a27ad69c

- Emit certificate-stored signal in purple_certificate_pool_store
author William Ehlhardt <williamehlhardt@gmail.com>
date Fri, 27 Jul 2007 07:01:21 +0000
parents 2aa5a9f47470
children 3af5d9ed9ad3
files libpurple/certificate.c
diffstat 1 files changed, 9 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/certificate.c	Fri Jul 27 07:00:43 2007 +0000
+++ b/libpurple/certificate.c	Fri Jul 27 07:01:21 2007 +0000
@@ -323,6 +323,8 @@
 gboolean
 purple_certificate_pool_store(PurpleCertificatePool *pool, const gchar *id, PurpleCertificate *crt)
 {
+	gboolean ret = FALSE;
+	
 	g_return_val_if_fail(pool, FALSE);
 	g_return_val_if_fail(id, FALSE);
 	g_return_val_if_fail(pool->put_cert, FALSE);
@@ -334,7 +336,13 @@
 		g_ascii_strcasecmp(pool->scheme_name, crt->scheme->name) == 0,
 		FALSE);
 
-	return (pool->put_cert)(id, crt);
+	ret = (pool->put_cert)(id, crt);
+
+	/* Signal that the certificate was stored */
+	purple_signal_emit(pool, "certificate-stored",
+			   pool, id);
+
+	return ret;
 }	
 
 GList *