Mercurial > pidgin
comparison libpurple/protocols/myspace/myspace.c @ 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 |
comparison
equal
deleted
inserted
replaced
19351:5461821ac122 | 19352:93f01e37d9f1 |
---|---|
2701 ; | 2701 ; |
2702 } else if (!strcmp(key_str, "ImageURL") || !strcmp(key_str, "AvatarURL")) { | 2702 } else if (!strcmp(key_str, "ImageURL") || !strcmp(key_str, "AvatarURL")) { |
2703 const gchar *previous_url; | 2703 const gchar *previous_url; |
2704 | 2704 |
2705 user->image_url = g_strdup(value_str); | 2705 user->image_url = g_strdup(value_str); |
2706 | |
2707 /* Instead of showing 'no photo' picture, show nothing. */ | |
2708 if (!strcmp(user->image_url, "http://x.myspace.com/images/no_pic.gif")) | |
2709 { | |
2710 purple_buddy_icons_set_for_user(user->buddy->account, | |
2711 user->buddy->name, | |
2712 NULL, 0, NULL); | |
2713 return; | |
2714 } | |
2706 | 2715 |
2707 previous_url = purple_buddy_icons_get_checksum_for_user(user->buddy); | 2716 previous_url = purple_buddy_icons_get_checksum_for_user(user->buddy); |
2708 | 2717 |
2709 /* Only download if URL changed */ | 2718 /* Only download if URL changed */ |
2710 if (!previous_url || strcmp(previous_url, user->image_url)) { | 2719 if (!previous_url || strcmp(previous_url, user->image_url)) { |