diff libpurple/protocols/silc/silc.c @ 16485:6c3b44ac71f3

Update SILC for imgstore changes.
author Daniel Atallah <daniel.atallah@gmail.com>
date Fri, 27 Apr 2007 03:27:37 +0000
parents a5176db228b7
children 56f0049d3207
line wrap: on
line diff
--- a/libpurple/protocols/silc/silc.c	Fri Apr 27 02:34:42 2007 +0000
+++ b/libpurple/protocols/silc/silc.c	Fri Apr 27 03:27:37 2007 +0000
@@ -194,7 +194,7 @@
 		SilcUInt32 mask;
 		const char *tmp;
 #ifdef SILC_ATTRIBUTE_USER_ICON
-		char *icon;
+		PurpleStoredImage *img;
 #endif
 #ifdef HAVE_SYS_UTSNAME_H
 		struct utsname u;
@@ -233,9 +233,9 @@
 
 #ifdef SILC_ATTRIBUTE_USER_ICON
 		/* Set our buddy icon */
-		icon = purple_buddy_icons_get_full_path(purple_account_get_buddy_icon(account));
-		silcpurple_buddy_set_icon(gc, icon);
-		g_free(icon);
+		img = purple_buddy_icons_find_account_icon(account);
+		silcpurple_buddy_set_icon(gc, img);
+		purple_imgstore_unref(img);
 #endif
 	}