Mercurial > pidgin.yaz
diff src/pounce.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 | dc4475bf718f |
children | bb0d7b719af2 |
line wrap: on
line diff
--- a/src/pounce.c Sun Jun 26 01:14:51 2005 +0000 +++ b/src/pounce.c Tue Jun 28 06:13:07 2005 +0000 @@ -508,7 +508,7 @@ } if (!g_file_get_contents(filename, &contents, &length, &error)) { - gaim_debug(GAIM_DEBUG_ERROR, "pounces", + gaim_debug(GAIM_DEBUG_ERROR, "pounce", "Error reading pounces: %s\n", error->message); g_free(filename); @@ -534,7 +534,7 @@ } if (!g_markup_parse_context_end_parse(context, NULL)) { - gaim_debug(GAIM_DEBUG_ERROR, "pounces", "Error parsing %s\n", + gaim_debug(GAIM_DEBUG_ERROR, "pounce", "Error parsing %s\n", filename); g_markup_parse_context_free(context); @@ -980,6 +980,8 @@ void *blist_handle = gaim_blist_get_handle(); void *conv_handle = gaim_conversations_get_handle(); + gaim_debug_register_category("pounce"); + pounce_handlers = g_hash_table_new_full(g_str_hash, g_str_equal, g_free, free_pounce_handler); @@ -1019,4 +1021,6 @@ } gaim_signals_disconnect_by_handle(gaim_pounces_get_handle()); + + gaim_debug_unregister_category("pounce"); }