Mercurial > pidgin.yaz
diff src/dialogs.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 | bb70dc397782 |
line wrap: on
line diff
--- a/src/dialogs.c Mon Sep 15 02:23:58 2003 +0000 +++ b/src/dialogs.c Mon Sep 15 07:35:49 2003 +0000 @@ -832,9 +832,6 @@ GaimConversation *c; GaimBuddy *b; GaimGroup *g; - void *icon_data; - void *icon_data2; - int icon_len; if (resp == GTK_RESPONSE_OK) { @@ -852,15 +849,7 @@ serv_add_buddy(a->gc, who, g); if (c != NULL) - gaim_conversation_update(c, GAIM_CONV_UPDATE_ADD); - - icon_data = get_icon_data(a->gc, normalize(who), &icon_len); - - if(icon_data) { - icon_data2 = g_memdup(icon_data, icon_len); - set_icon_data(a->gc, who, icon_data2, icon_len); - g_free(icon_data2); - } + gaim_buddy_icon_update(gaim_im_get_icon(GAIM_IM(c))); gaim_blist_save(); }