Mercurial > pidgin.yaz
comparison src/plugin.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 | 4b0f64ab869c |
children | dc6fabb3b645 |
comparison
equal
deleted
inserted
replaced
11032:31c1c48daba1 | 11033:50224ac8184d |
---|---|
813 | 813 |
814 void | 814 void |
815 gaim_plugins_init(void) { | 815 gaim_plugins_init(void) { |
816 void *handle = gaim_plugins_get_handle(); | 816 void *handle = gaim_plugins_get_handle(); |
817 | 817 |
818 gaim_debug_register_category("plugins"); | |
819 | |
818 gaim_signal_register(handle, "plugin-load", | 820 gaim_signal_register(handle, "plugin-load", |
819 gaim_marshal_VOID__POINTER, | 821 gaim_marshal_VOID__POINTER, |
820 NULL, 1, | 822 NULL, 1, |
821 gaim_value_new(GAIM_TYPE_SUBTYPE, | 823 gaim_value_new(GAIM_TYPE_SUBTYPE, |
822 GAIM_SUBTYPE_PLUGIN)); | 824 GAIM_SUBTYPE_PLUGIN)); |
828 } | 830 } |
829 | 831 |
830 void | 832 void |
831 gaim_plugins_uninit(void) { | 833 gaim_plugins_uninit(void) { |
832 gaim_signals_disconnect_by_handle(gaim_plugins_get_handle()); | 834 gaim_signals_disconnect_by_handle(gaim_plugins_get_handle()); |
835 | |
836 gaim_debug_unregister_category("plugins"); | |
833 } | 837 } |
834 | 838 |
835 /************************************************************************** | 839 /************************************************************************** |
836 * Plugins API | 840 * Plugins API |
837 **************************************************************************/ | 841 **************************************************************************/ |