Mercurial > pidgin
comparison libgaim/account.c @ 14981:0a9c44ce9a4a
[gaim-migrate @ 17760]
Get rid of serv_set_buddyicon(). Moved the code directly
into gaim_account_set_buddy_icon().
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Thu, 16 Nov 2006 22:47:45 +0000 |
parents | c157efddc62a |
children | 633d4c25e82c |
comparison
equal
deleted
inserted
replaced
14980:f4705e2c2026 | 14981:0a9c44ce9a4a |
---|---|
1268 | 1268 |
1269 g_free(account->buddy_icon); | 1269 g_free(account->buddy_icon); |
1270 account->buddy_icon = g_strdup(icon); | 1270 account->buddy_icon = g_strdup(icon); |
1271 if (gaim_account_is_connected(account)) | 1271 if (gaim_account_is_connected(account)) |
1272 { | 1272 { |
1273 char *filename = gaim_buddy_icons_get_full_path(icon); | 1273 GaimConnection *gc; |
1274 serv_set_buddyicon(gaim_account_get_connection(account), filename); | 1274 GaimPluginProtocolInfo *prpl_info; |
1275 g_free(filename); | 1275 |
1276 gc = gaim_account_get_connection(account); | |
1277 prpl_info = GAIM_PLUGIN_PROTOCOL_INFO(gc->prpl); | |
1278 | |
1279 if (prpl_info && prpl_info->set_buddy_icon) | |
1280 { | |
1281 char *filename = gaim_buddy_icons_get_full_path(icon); | |
1282 prpl_info->set_buddy_icon(gc, filename); | |
1283 g_free(filename); | |
1284 } | |
1276 } | 1285 } |
1277 | 1286 |
1278 schedule_accounts_save(); | 1287 schedule_accounts_save(); |
1279 } | 1288 } |
1280 | 1289 |