comparison plugins/signals-test.c @ 11256:bb0d7b719af2

[gaim-migrate @ 13430] I give you regex filtering in the debug window. We keep a buffer of all the text, so when unpausing all the messages that were output when paused will be displayed, as well as when you change the filter. This _should_ be alright on systems that don't have regex.h but I haven't gotten anyone to test it recently, if it's busted, just #ifdef HAVE_REGEX_H it. committer: Tailor Script <tailor@pidgin.im>
author Gary Kramlich <grim@reaperworld.com>
date Sat, 13 Aug 2005 22:09:34 +0000
parents e4459e8ccfb5
children 920a37a4c1be
comparison
equal deleted inserted replaced
11255:1b1d63602d77 11256:bb0d7b719af2
487 void *conn_handle = gaim_connections_get_handle(); 487 void *conn_handle = gaim_connections_get_handle();
488 void *conv_handle = gaim_conversations_get_handle(); 488 void *conv_handle = gaim_conversations_get_handle();
489 void *accounts_handle = gaim_accounts_get_handle(); 489 void *accounts_handle = gaim_accounts_get_handle();
490 void *ciphers_handle = gaim_ciphers_get_handle(); 490 void *ciphers_handle = gaim_ciphers_get_handle();
491 void *buddy_icons_handle = gaim_buddy_icons_get_handle(); 491 void *buddy_icons_handle = gaim_buddy_icons_get_handle();
492
493 gaim_debug_register_category("signals-test");
494 492
495 /* Accounts subsystem signals */ 493 /* Accounts subsystem signals */
496 gaim_signal_connect(accounts_handle, "account-connecting", 494 gaim_signal_connect(accounts_handle, "account-connecting",
497 plugin, GAIM_CALLBACK(account_connecting_cb), NULL); 495 plugin, GAIM_CALLBACK(account_connecting_cb), NULL);
498 gaim_signal_connect(accounts_handle, "account-away", 496 gaim_signal_connect(accounts_handle, "account-away",
611 plugin, GAIM_CALLBACK(quitting_cb), NULL); 609 plugin, GAIM_CALLBACK(quitting_cb), NULL);
612 610
613 return TRUE; 611 return TRUE;
614 } 612 }
615 613
616 static gboolean
617 plugin_unload(GaimPlugin *plugin)
618 {
619 gaim_debug_unregister_category("signals-test");
620 }
621
622 static GaimPluginInfo info = 614 static GaimPluginInfo info =
623 { 615 {
624 GAIM_PLUGIN_MAGIC, 616 GAIM_PLUGIN_MAGIC,
625 GAIM_MAJOR_VERSION, 617 GAIM_MAJOR_VERSION,
626 GAIM_MINOR_VERSION, 618 GAIM_MINOR_VERSION,
639 N_("Test to see that all signals are working properly."), 631 N_("Test to see that all signals are working properly."),
640 "Christian Hammond <chipx86@gnupdate.org>", /**< author */ 632 "Christian Hammond <chipx86@gnupdate.org>", /**< author */
641 GAIM_WEBSITE, /**< homepage */ 633 GAIM_WEBSITE, /**< homepage */
642 634
643 plugin_load, /**< load */ 635 plugin_load, /**< load */
644 plugin_unload, /**< unload */ 636 NULL, /**< unload */
645 NULL, /**< destroy */ 637 NULL, /**< destroy */
646 638
647 NULL, /**< ui_info */ 639 NULL, /**< ui_info */
648 NULL, /**< extra_info */ 640 NULL, /**< extra_info */
649 NULL, 641 NULL,