Mercurial > pidgin
diff libpurple/protocols/oscar/oscar.c @ 16375:391a79778f89
Rework the buddy icon subsystem to use the imgstore subsystem, and modify the
imgstore subsystem to not require IDs for everything.
author | Richard Laager <rlaager@wiktel.com> |
---|---|
date | Tue, 24 Apr 2007 03:57:07 +0000 |
parents | a2eb5a23d51d |
children | e0c9a46b459f |
line wrap: on
line diff
--- a/libpurple/protocols/oscar/oscar.c Tue Apr 24 03:56:16 2007 +0000 +++ b/libpurple/protocols/oscar/oscar.c Tue Apr 24 03:57:07 2007 +0000 @@ -4140,11 +4140,11 @@ id = g_datalist_get_data(&attribs, "id"); /* ... if it refers to a valid purple image ... */ - if (id && (image = purple_imgstore_get(atoi(id)))) { + if (id && (image = purple_imgstore_find_by_id(atoi(id)))) { /* ... append the message from start to the tag ... */ unsigned long size = purple_imgstore_get_size(image); const char *filename = purple_imgstore_get_filename(image); - gpointer imgdata = purple_imgstore_get_data(image); + gconstpointer imgdata = purple_imgstore_get_data(image); oscar_id++;