# HG changeset patch # User Sadrul Habib Chowdhury # Date 1188366001 0 # Node ID 7bea9c9fd2a54074bab683b002bec48763b56a0b # Parent e1751162ab1f8233ff263c4bead11dc88881688c (Un)Register the pools with DBus to avoid a runtime fit. diff -r e1751162ab1f -r 7bea9c9fd2a5 libpurple/certificate.c --- 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); } - - -