Mercurial > pidgin
diff src/core.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 | 72a5babfa8b4 |
children | ebb02ea3c789 |
line wrap: on
line diff
--- a/src/core.c Sun Jun 26 01:14:51 2005 +0000 +++ b/src/core.c Tue Jun 28 06:13:07 2005 +0000 @@ -76,14 +76,7 @@ * for protocol prefs to work. */ gaim_prefs_init(); - /* Initialize all static protocols. */ - static_proto_init(); - - /* Since plugins get probed so early we should probably initialize their - * subsystem right away too. - */ - gaim_plugins_init(); - gaim_plugins_probe(GAIM_PLUGIN_EXT); + gaim_debug_init(); if (ops != NULL) { @@ -94,13 +87,23 @@ ops->debug_ui_init(); } + gaim_debug_register_category("main"); + + /* Initialize all static protocols. */ + static_proto_init(); + + /* Since plugins get probed so early we should probably initialize their + * subsystem right away too. + */ + gaim_plugins_init(); + gaim_plugins_probe(GAIM_PLUGIN_EXT); + gaim_status_init(); gaim_savedstatuses_init(); gaim_accounts_init(); gaim_ciphers_init(); gaim_connections_init(); gaim_conversations_init(); - gaim_debug_init(); gaim_blist_init(); gaim_log_init(); gaim_buddy_icons_init(); @@ -160,6 +163,9 @@ core->ui = NULL; } + /* I think this is where this should go */ + gaim_debug_unregister_category("main"); + g_free(core); _core = NULL;