comparison src/buddyicon.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 dd5c802baf7b
children 3428ad6f5049
comparison
equal deleted inserted replaced
11032:31c1c48daba1 11033:50224ac8184d
471 } 471 }
472 472
473 void 473 void
474 gaim_buddy_icons_init() 474 gaim_buddy_icons_init()
475 { 475 {
476 gaim_debug_register_category("buddy icons");
477
476 account_cache = g_hash_table_new_full( 478 account_cache = g_hash_table_new_full(
477 g_direct_hash, g_direct_equal, 479 g_direct_hash, g_direct_equal,
478 NULL, (GFreeFunc)g_hash_table_destroy); 480 NULL, (GFreeFunc)g_hash_table_destroy);
479 481
480 cache_dir = g_build_filename(gaim_user_dir(), "icons", NULL); 482 cache_dir = g_build_filename(gaim_user_dir(), "icons", NULL);
482 gaim_signal_register(gaim_buddy_icons_get_handle(), "buddy-icon-cached", 484 gaim_signal_register(gaim_buddy_icons_get_handle(), "buddy-icon-cached",
483 gaim_marshal_VOID__POINTER_POINTER_POINTER_POINTER, NULL, 4, 485 gaim_marshal_VOID__POINTER_POINTER_POINTER_POINTER, NULL, 4,
484 gaim_value_new(GAIM_TYPE_SUBTYPE, 486 gaim_value_new(GAIM_TYPE_SUBTYPE,
485 GAIM_SUBTYPE_BUDDY_ICON), 487 GAIM_SUBTYPE_BUDDY_ICON),
486 gaim_value_new(GAIM_TYPE_SUBTYPE, 488 gaim_value_new(GAIM_TYPE_SUBTYPE,
487 GAIM_SUBTYPE_BLIST_BUDDY), 489 GAIM_SUBTYPE_BLIST_BUDDY),
488 gaim_value_new(GAIM_TYPE_STRING), 490 gaim_value_new(GAIM_TYPE_STRING),
489 gaim_value_new(GAIM_TYPE_STRING)); 491 gaim_value_new(GAIM_TYPE_STRING));
490 } 492 }
491 493
492 void 494 void
493 gaim_buddy_icons_uninit() 495 gaim_buddy_icons_uninit()
494 { 496 {
495 g_hash_table_destroy(account_cache); 497 g_hash_table_destroy(account_cache);
498
499 gaim_debug_unregister_category("buddy icons");
496 } 500 }
497 501
498 void gaim_buddy_icon_get_scale_size(GaimBuddyIconSpec *spec, int *width, int *height) 502 void gaim_buddy_icon_get_scale_size(GaimBuddyIconSpec *spec, int *width, int *height)
499 { 503 {
500 if(spec && spec->scale_rules & GAIM_ICON_SCALE_DISPLAY) { 504 if(spec && spec->scale_rules & GAIM_ICON_SCALE_DISPLAY) {