comparison plugins/perl/perl.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 f8e395a054e2
children 4315bb5f427b
comparison
equal deleted inserted replaced
11032:31c1c48daba1 11033:50224ac8184d
502 } 502 }
503 } 503 }
504 } 504 }
505 505
506 static gboolean 506 static gboolean
507 plugin_load(GaimPlugin *plugin)
508 {
509 gaim_debug_register_category("perl");
510
511 return TRUE;
512 }
513
514 static gboolean
507 plugin_unload(GaimPlugin *plugin) 515 plugin_unload(GaimPlugin *plugin)
508 { 516 {
509 perl_end(); 517 perl_end();
518
519 gaim_debug_unregister_category("perl");
510 520
511 return TRUE; 521 return TRUE;
512 } 522 }
513 523
514 static GaimPluginLoaderInfo loader_info = 524 static GaimPluginLoaderInfo loader_info =
537 N_("Provides support for loading perl plugins."), /**< summary */ 547 N_("Provides support for loading perl plugins."), /**< summary */
538 N_("Provides support for loading perl plugins."), /**< description */ 548 N_("Provides support for loading perl plugins."), /**< description */
539 "Christian Hammond <chipx86@gnupdate.org>", /**< author */ 549 "Christian Hammond <chipx86@gnupdate.org>", /**< author */
540 GAIM_WEBSITE, /**< homepage */ 550 GAIM_WEBSITE, /**< homepage */
541 551
542 NULL, /**< load */ 552 plugin_load, /**< load */
543 plugin_unload, /**< unload */ 553 plugin_unload, /**< unload */
544 NULL, /**< destroy */ 554 NULL, /**< destroy */
545 555
546 NULL, /**< ui_info */ 556 NULL, /**< ui_info */
547 &loader_info, /**< extra_info */ 557 &loader_info, /**< extra_info */