Mercurial > pidgin
comparison libgaim/protocols/oscar/oscar.c @ 15193:8d2e6e9118e2
[gaim-migrate @ 17982]
For oscar accounts, make sure our server-stored icon is updated
correctly in the event that the local user set a new icon while
this account was offline.
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Wed, 13 Dec 2006 08:45:57 +0000 |
parents | b7f83eba6029 |
children | 83f0a2d3b441 |
comparison
equal
deleted
inserted
replaced
15192:d380e165cd27 | 15193:8d2e6e9118e2 |
---|---|
4695 GaimAccount *account; | 4695 GaimAccount *account; |
4696 GaimGroup *g; | 4696 GaimGroup *g; |
4697 GaimBuddy *b; | 4697 GaimBuddy *b; |
4698 struct aim_ssi_item *curitem; | 4698 struct aim_ssi_item *curitem; |
4699 guint32 tmp; | 4699 guint32 tmp; |
4700 const char *icon_path, *cached_icon_path; | |
4700 va_list ap; | 4701 va_list ap; |
4701 guint16 fmtver, numitems; | 4702 guint16 fmtver, numitems; |
4702 guint32 timestamp; | 4703 guint32 timestamp; |
4703 | 4704 |
4704 gc = od->gc; | 4705 gc = od->gc; |
4921 /* Sending the enable causes other people to be able to see you, and you to see them */ | 4922 /* Sending the enable causes other people to be able to see you, and you to see them */ |
4922 /* Make sure your privacy setting/invisibility is set how you want it before this! */ | 4923 /* Make sure your privacy setting/invisibility is set how you want it before this! */ |
4923 gaim_debug_info("oscar", | 4924 gaim_debug_info("oscar", |
4924 "ssi: activating server-stored buddy list\n"); | 4925 "ssi: activating server-stored buddy list\n"); |
4925 aim_ssi_enable(od); | 4926 aim_ssi_enable(od); |
4927 | |
4928 /* | |
4929 * Make sure our server-stored icon is updated correctly in | |
4930 * the event that the local user set a new icon while this | |
4931 * account was offline. | |
4932 */ | |
4933 icon_path = gaim_account_get_buddy_icon(account); | |
4934 cached_icon_path = gaim_buddy_icons_get_full_path(icon_path); | |
4935 oscar_set_icon(gc, cached_icon_path); | |
4926 | 4936 |
4927 return 1; | 4937 return 1; |
4928 } | 4938 } |
4929 | 4939 |
4930 static int gaim_ssi_parseack(OscarData *od, FlapConnection *conn, FlapFrame *fr, ...) { | 4940 static int gaim_ssi_parseack(OscarData *od, FlapConnection *conn, FlapFrame *fr, ...) { |