Mercurial > pidgin.yaz
changeset 4769:e0afac5f85bd
[gaim-migrate @ 5087]
save buddy icons when you add buddies to your list
committer: Tailor Script <tailor@pidgin.im>
author | Nathan Walp <nwalp@pidgin.im> |
---|---|
date | Fri, 14 Mar 2003 08:27:13 +0000 |
parents | a1ea914506c9 |
children | c4c28874ecd3 |
files | src/dialogs.c |
diffstat | 1 files changed, 11 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/dialogs.c Fri Mar 14 08:11:15 2003 +0000 +++ b/src/dialogs.c Fri Mar 14 08:27:13 2003 +0000 @@ -874,6 +874,9 @@ struct gaim_conversation *c; struct buddy *b; struct group *g; + void *icon_data; + void *icon_data2; + int icon_len; if (resp == GTK_RESPONSE_OK) { @@ -891,6 +894,14 @@ 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_blist_save(); }