Mercurial > pidgin
diff src/gtkutils.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 | 3c10d6de8bf3 |
| children | 9946001989a3 |
line wrap: on
line diff
--- a/src/gtkutils.c Mon Sep 15 02:23:58 2003 +0000 +++ b/src/gtkutils.c Mon Sep 15 07:35:49 2003 +0000 @@ -266,7 +266,7 @@ GaimGtkConversation *gtkconv; FILE *file; const char *f; - + gtkconv = GAIM_GTK_CONVERSATION(c); f = gtk_file_selection_get_filename( @@ -276,10 +276,9 @@ return; if ((file = fopen(f, "w")) != NULL) { - int len; - void *data = get_icon_data(gaim_conversation_get_gc(c), - normalize(gaim_conversation_get_name(c)), - &len); + GaimBuddyIcon *icon = gaim_im_get_icon(GAIM_IM(c)); + size_t len; + const void *data = gaim_buddy_icon_get_data(icon, &len); if (data) fwrite(data, 1, len, file);
