libpurple / buddy icons

Cedric Roche csced at
Tue Aug 18 10:21:03 EDT 2009


I'm trying to retrieve the buddy icons. Here is how I do it :

PurpleBuddyIcon *icon = NULL;
if ((icon = purple_buddy_icons_find(buddy->account, buddy->name)))
     const void     *data;
     size_t         len;

     data = purple_buddy_icon_get_data(icon, &len);
     purple_util_write_data_to_file_absolute(path, (const char*) data, len);   // yes the path variable is changing

The problem is that I'm not getting all the icons. I do get some of them but not all of them.
Am I (again) missing something ?

Téléphonez gratuitement à tous vos proches avec Windows Live Messenger  !  Téléchargez-le maintenant !
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the Devel mailing list