Mercurial > pidgin.yaz
diff src/protocols/oscar/oscar.c @ 6846:8ab95f4c9800
[gaim-migrate @ 7391]
Added new buddy icon caching code. Each GaimBuddy has its own icon, and the
complete list of all icons is now stored in a set of hashtables for quick
retrieval. Buddy icons now live much happier in the core, with the magma
and tooth fairies (that's where they really live).
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Mon, 15 Sep 2003 07:35:49 +0000 |
parents | faa491042c66 |
children | 59f6d0b1bdbe |
line wrap: on
line diff
--- a/src/protocols/oscar/oscar.c Mon Sep 15 02:23:58 2003 +0000 +++ b/src/protocols/oscar/oscar.c Mon Sep 15 07:35:49 2003 +0000 @@ -28,6 +28,7 @@ #include "account.h" #include "accountopt.h" +#include "buddyicon.h" #include "conversation.h" #include "debug.h" #include "ft.h" @@ -2387,8 +2388,9 @@ } else if (args->reqclass & AIM_CAPS_GETFILE) { } else if (args->reqclass & AIM_CAPS_VOICE) { } else if (args->reqclass & AIM_CAPS_BUDDYICON) { - set_icon_data(gc, userinfo->sn, args->info.icon.icon, - args->info.icon.length); + gaim_buddy_icons_set_for_user(gaim_connection_get_account(gc), + userinfo->sn, args->info.icon.icon, + args->info.icon.length); } else if (args->reqclass & AIM_CAPS_IMIMAGE) { struct ask_direct *d = g_new0(struct ask_direct, 1); char buf[256]; @@ -3512,7 +3514,8 @@ if (iconlen > 0) { char *b16; GaimBuddy *b = gaim_find_buddy(gc->account, sn); - set_icon_data(gc, sn, icon, iconlen); + gaim_buddy_icons_set_for_user(gaim_connection_get_account(gc), + sn, icon, iconlen); b16 = tobase16(iconcsum, iconcsumlen); if (b16) { gaim_buddy_set_setting(b, "icon_checksum", b16);