Mercurial > pidgin
changeset 19352:93f01e37d9f1
If buddy doesn't have a picture, display no icon, instead of the "no photo" icon that MySpaceIM
provides.
author | Jeffrey Connelly <jaconnel@calpoly.edu> |
---|---|
date | Thu, 23 Aug 2007 06:10:21 +0000 |
parents | 5461821ac122 |
children | af0e77c44667 |
files | libpurple/protocols/myspace/myspace.c |
diffstat | 1 files changed, 9 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/libpurple/protocols/myspace/myspace.c Thu Aug 23 06:02:54 2007 +0000 +++ b/libpurple/protocols/myspace/myspace.c Thu Aug 23 06:10:21 2007 +0000 @@ -2703,6 +2703,15 @@ const gchar *previous_url; user->image_url = g_strdup(value_str); + + /* Instead of showing 'no photo' picture, show nothing. */ + if (!strcmp(user->image_url, "http://x.myspace.com/images/no_pic.gif")) + { + purple_buddy_icons_set_for_user(user->buddy->account, + user->buddy->name, + NULL, 0, NULL); + return; + } previous_url = purple_buddy_icons_get_checksum_for_user(user->buddy);