comparison libpurple/protocols/silc/silc.c @ 16493: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
comparison
equal deleted inserted replaced
16485:3c01acbf3478 16493:6c3b44ac71f3
192 /* Set default attributes */ 192 /* Set default attributes */
193 if (!purple_account_get_bool(account, "reject-attrs", FALSE)) { 193 if (!purple_account_get_bool(account, "reject-attrs", FALSE)) {
194 SilcUInt32 mask; 194 SilcUInt32 mask;
195 const char *tmp; 195 const char *tmp;
196 #ifdef SILC_ATTRIBUTE_USER_ICON 196 #ifdef SILC_ATTRIBUTE_USER_ICON
197 char *icon; 197 PurpleStoredImage *img;
198 #endif 198 #endif
199 #ifdef HAVE_SYS_UTSNAME_H 199 #ifdef HAVE_SYS_UTSNAME_H
200 struct utsname u; 200 struct utsname u;
201 #endif 201 #endif
202 202
231 SILC_ATTRIBUTE_TIMEZONE, 231 SILC_ATTRIBUTE_TIMEZONE,
232 (void *)tmp, strlen(tmp)); 232 (void *)tmp, strlen(tmp));
233 233
234 #ifdef SILC_ATTRIBUTE_USER_ICON 234 #ifdef SILC_ATTRIBUTE_USER_ICON
235 /* Set our buddy icon */ 235 /* Set our buddy icon */
236 icon = purple_buddy_icons_get_full_path(purple_account_get_buddy_icon(account)); 236 img = purple_buddy_icons_find_account_icon(account);
237 silcpurple_buddy_set_icon(gc, icon); 237 silcpurple_buddy_set_icon(gc, img);
238 g_free(icon); 238 purple_imgstore_unref(img);
239 #endif 239 #endif
240 } 240 }
241 241
242 silc_free(params.detach_data); 242 silc_free(params.detach_data);
243 } 243 }