Mercurial > pidgin.yaz
comparison libpurple/protocols/msn/slp.c @ 16388:d4c79390d424
There's no need to actually lookup the icon now, as the core ensures the checksum gets deleted if the file disappears.
author | Richard Laager <rlaager@wiktel.com> |
---|---|
date | Wed, 25 Apr 2007 01:19:01 +0000 |
parents | e0c9a46b459f |
children | 4fc51a87ce42 |
comparison
equal
deleted
inserted
replaced
16387:414b9c9405fd | 16388:d4c79390d424 |
---|---|
876 if (new == NULL) | 876 if (new == NULL) |
877 return FALSE; | 877 return FALSE; |
878 | 878 |
879 /* If the old and new checksums are the same, and the file actually exists, | 879 /* If the old and new checksums are the same, and the file actually exists, |
880 * then return TRUE */ | 880 * then return TRUE */ |
881 if (old != NULL && !strcmp(old, new) && (purple_buddy_icons_find(account, purple_buddy_get_name(buddy)) != NULL)) | 881 if (old != NULL && !strcmp(old, new)) |
882 return TRUE; | 882 return TRUE; |
883 | 883 |
884 return FALSE; | 884 return FALSE; |
885 } | 885 } |
886 | 886 |
1090 | 1090 |
1091 if (filename != NULL) | 1091 if (filename != NULL) |
1092 g_file_get_contents(filename, &data, &len, NULL); | 1092 g_file_get_contents(filename, &data, &len, NULL); |
1093 } | 1093 } |
1094 | 1094 |
1095 /* TODO: I think we need better buddy icon core functions. */ | |
1096 purple_buddy_icons_set_for_user(account, user->passport, (void *)data, len, info); | 1095 purple_buddy_icons_set_for_user(account, user->passport, (void *)data, len, info); |
1097 g_free(data); | 1096 g_free(data); |
1098 | 1097 |
1099 /* Free one window slot */ | 1098 /* Free one window slot */ |
1100 session->userlist->buddy_icon_window++; | 1099 session->userlist->buddy_icon_window++; |