comparison 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
comparison
equal deleted inserted replaced
11032:31c1c48daba1 11033:50224ac8184d
506 pounces_loaded = TRUE; 506 pounces_loaded = TRUE;
507 return FALSE; 507 return FALSE;
508 } 508 }
509 509
510 if (!g_file_get_contents(filename, &contents, &length, &error)) { 510 if (!g_file_get_contents(filename, &contents, &length, &error)) {
511 gaim_debug(GAIM_DEBUG_ERROR, "pounces", 511 gaim_debug(GAIM_DEBUG_ERROR, "pounce",
512 "Error reading pounces: %s\n", error->message); 512 "Error reading pounces: %s\n", error->message);
513 513
514 g_free(filename); 514 g_free(filename);
515 g_error_free(error); 515 g_error_free(error);
516 516
532 532
533 return FALSE; 533 return FALSE;
534 } 534 }
535 535
536 if (!g_markup_parse_context_end_parse(context, NULL)) { 536 if (!g_markup_parse_context_end_parse(context, NULL)) {
537 gaim_debug(GAIM_DEBUG_ERROR, "pounces", "Error parsing %s\n", 537 gaim_debug(GAIM_DEBUG_ERROR, "pounce", "Error parsing %s\n",
538 filename); 538 filename);
539 539
540 g_markup_parse_context_free(context); 540 g_markup_parse_context_free(context);
541 g_free(contents); 541 g_free(contents);
542 g_free(filename); 542 g_free(filename);
977 gaim_pounces_init(void) 977 gaim_pounces_init(void)
978 { 978 {
979 void *handle = gaim_pounces_get_handle(); 979 void *handle = gaim_pounces_get_handle();
980 void *blist_handle = gaim_blist_get_handle(); 980 void *blist_handle = gaim_blist_get_handle();
981 void *conv_handle = gaim_conversations_get_handle(); 981 void *conv_handle = gaim_conversations_get_handle();
982
983 gaim_debug_register_category("pounce");
982 984
983 pounce_handlers = g_hash_table_new_full(g_str_hash, g_str_equal, 985 pounce_handlers = g_hash_table_new_full(g_str_hash, g_str_equal,
984 g_free, free_pounce_handler); 986 g_free, free_pounce_handler);
985 987
986 gaim_signal_connect(blist_handle, "buddy-idle", 988 gaim_signal_connect(blist_handle, "buddy-idle",
1017 save_timer = 0; 1019 save_timer = 0;
1018 sync_pounces(); 1020 sync_pounces();
1019 } 1021 }
1020 1022
1021 gaim_signals_disconnect_by_handle(gaim_pounces_get_handle()); 1023 gaim_signals_disconnect_by_handle(gaim_pounces_get_handle());
1022 } 1024
1025 gaim_debug_unregister_category("pounce");
1026 }