Regarding a query

nandini AGGARWAL nandini.aggarwal15 at gmail.com
Fri Jul 2 06:26:51 EDT 2010


Hi

I am trying to set user icon using libpurple API but i am not able to do so.
I am using the following API.

image_store = purple_imgstore_new_from_file(
"D:\\nandani\\pic\\LavenderFlowers.jpg");

filename = purple_imgstore_get_filename(image_store);

get_icon_data =
g_file_get_contents("D:\\nandani\\pic\\LavenderFlowers.jpg",&contents,&len,&error);

img = purple_buddy_icons_set_account_icon(account,(guchar
*)contents,length);

OR

purple_account_set_buddy_icon_path (account,
"D:\\nandani\\pic\\LavenderFlowers.jpg");



Please guide me how can i do it...

Thanks in advace..Waiting for your reply..



Nandani
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://pidgin.im/pipermail/support/attachments/20100702/df0d4e9c/attachment.html>


More information about the Support mailing list