Wed, 29 Aug 2007 05:40:01 +0000
(Un)Register the pools with DBus to avoid a runtime fit.
| libpurple/certificate.c | file | annotate | diff | comparison | revisions |
--- 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); } - - -