Mercurial > pidgin.yaz
diff plugins/ipc-test-client.c @ 11033:50224ac8184d
[gaim-migrate @ 12919]
Ok, this is debug window filtering. Sadrul was going to do this with a text entry, but I like this better, feel free to disagree with me. It's not the prettiest in a couple places, most notable gtkmain.c where a bunch of categories that don't currently have a home get registered. I added some plugin_(un)load functions to some plugins to place the (un)register functions. Though I didn't do that for the prpls. Comments and cleanups welcome. (Oh, I've been seeing some crashes on quit, but I haven't been able to get it to happen reliably so I'm not sure if it's my code or some transient HEAD oscar/other crash.)
committer: Tailor Script <tailor@pidgin.im>
author | Etan Reisner <pidgin@unreliablesource.net> |
---|---|
date | Tue, 28 Jun 2005 06:13:07 +0000 |
parents | a9fb4493ae22 |
children | bb0d7b719af2 |
line wrap: on
line diff
--- a/plugins/ipc-test-client.c Sun Jun 26 01:14:51 2005 +0000 +++ b/plugins/ipc-test-client.c Tue Jun 28 06:13:07 2005 +0000 @@ -32,6 +32,8 @@ gboolean ok; int result; + gaim_debug_register_category("ipc-test-client"); + server_plugin = gaim_plugins_find_with_id("core-ipc-test-server"); if (server_plugin == NULL) @@ -72,6 +74,12 @@ return TRUE; } +static gboolean +plugin_unload(GaimPlugin *plugin) +{ + gaim_debug_unregister_category("ipc-test-client"); +} + static GaimPluginInfo info = { GAIM_PLUGIN_MAGIC, @@ -95,7 +103,7 @@ GAIM_WEBSITE, /**< homepage */ plugin_load, /**< load */ - NULL, /**< unload */ + plugin_unload, /**< unload */ NULL, /**< destroy */ NULL, /**< ui_info */