changeset 19517:7bea9c9fd2a5

(Un)Register the pools with DBus to avoid a runtime fit.
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Wed, 29 Aug 2007 05:40:01 +0000
parents e1751162ab1f
children 4574cd30f3ed
files libpurple/certificate.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/certificate.c	Wed Aug 29 05:18:39 2007 +0000
+++ b/libpurple/certificate.c	Wed Aug 29 05:40:01 2007 +0000
@@ -30,6 +30,7 @@
 
 #include "internal.h"
 #include "certificate.h"
+#include "dbus-maybe.h"
 #include "debug.h"
 #include "request.h"
 #include "signals.h"
@@ -1712,6 +1713,7 @@
 
 		/* TODO: Emit a signal that the pool got registered */
 
+		PURPLE_DBUS_REGISTER_POINTER(pool, PurpleCertificatePool);
 		purple_signal_register(pool, /* Signals emitted from pool */
 				       "certificate-stored",
 				       purple_marshal_VOID__POINTER_POINTER,
@@ -1760,6 +1762,7 @@
 	}
 
 	/* Uninit the pool if needed */
+	PURPLE_DBUS_UNREGISTER_POINTER(pool);
 	if (pool->uninit) {
 		pool->uninit();
 	}
@@ -1831,6 +1834,3 @@
 	g_byte_array_free(sha_bin, TRUE);
 }
 
-
-
-