comparison src/buddyicon.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 096020ae09a9
children 10066662176a
comparison
equal deleted inserted replaced
11255:1b1d63602d77 11256:bb0d7b719af2
503 } 503 }
504 504
505 void 505 void
506 gaim_buddy_icons_init() 506 gaim_buddy_icons_init()
507 { 507 {
508 gaim_debug_register_category("buddy icons");
509
510 account_cache = g_hash_table_new_full( 508 account_cache = g_hash_table_new_full(
511 g_direct_hash, g_direct_equal, 509 g_direct_hash, g_direct_equal,
512 NULL, (GFreeFunc)g_hash_table_destroy); 510 NULL, (GFreeFunc)g_hash_table_destroy);
513 511
514 cache_dir = g_build_filename(gaim_user_dir(), "icons", NULL); 512 cache_dir = g_build_filename(gaim_user_dir(), "icons", NULL);
525 523
526 void 524 void
527 gaim_buddy_icons_uninit() 525 gaim_buddy_icons_uninit()
528 { 526 {
529 g_hash_table_destroy(account_cache); 527 g_hash_table_destroy(account_cache);
530
531 gaim_debug_unregister_category("buddy icons");
532 } 528 }
533 529
534 void gaim_buddy_icon_get_scale_size(GaimBuddyIconSpec *spec, int *width, int *height) 530 void gaim_buddy_icon_get_scale_size(GaimBuddyIconSpec *spec, int *width, int *height)
535 { 531 {
536 if(spec && spec->scale_rules & GAIM_ICON_SCALE_DISPLAY) { 532 if(spec && spec->scale_rules & GAIM_ICON_SCALE_DISPLAY) {