Mercurial > pidgin.yaz
comparison src/buddyicon.c @ 11303:10066662176a
[gaim-migrate @ 13503]
For accounts, store only the basename of a buddy icon cache file. Everyone please make sure buddy icons still work for you.
committer: Tailor Script <tailor@pidgin.im>
author | Richard Laager <rlaager@wiktel.com> |
---|---|
date | Thu, 18 Aug 2005 20:49:58 +0000 |
parents | bb0d7b719af2 |
children | 17142948653e |
comparison
equal
deleted
inserted
replaced
11302:fc17554c32c5 | 11303:10066662176a |
---|---|
492 gaim_buddy_icons_get_cache_dir(void) | 492 gaim_buddy_icons_get_cache_dir(void) |
493 { | 493 { |
494 return cache_dir; | 494 return cache_dir; |
495 } | 495 } |
496 | 496 |
497 char *gaim_buddy_icons_get_full_path(const char *icon) { | |
498 struct stat st; | |
499 | |
500 if (icon == NULL) | |
501 return NULL; | |
502 | |
503 if (g_stat(icon, &st) == 0) | |
504 return g_strdup(icon); | |
505 else | |
506 return g_build_filename(gaim_buddy_icons_get_cache_dir(), icon, NULL); | |
507 } | |
508 | |
497 void * | 509 void * |
498 gaim_buddy_icons_get_handle() | 510 gaim_buddy_icons_get_handle() |
499 { | 511 { |
500 static int handle; | 512 static int handle; |
501 | 513 |