Mercurial > pidgin-twitter
diff icon.c @ 259:d45dd3589560
little clean up
author | Yoshiki Yazawa <yaz@honeyplanet.jp> |
---|---|
date | Wed, 03 Dec 2008 01:18:19 +0900 |
parents | 2145f975ef69 |
children | e9a7c018a952 |
line wrap: on
line diff
--- a/icon.c Wed Nov 26 14:32:09 2008 +0900 +++ b/icon.c Wed Dec 03 01:18:19 2008 +0900 @@ -1,5 +1,4 @@ #include "pidgin-twitter.h" -#include "icon.h" extern GHashTable *icon_hash[]; extern GRegex *regp[]; @@ -390,7 +389,7 @@ data->requested = FALSE; data->fetch_data = NULL; - /* return if user's icon had been downloaded */ + /* return if user's icon has been downloaded */ if(data->pixbuf) { twitter_debug("%s's icon has already been downloaded\n", user_name); @@ -474,7 +473,7 @@ twitter_debug("Downloading %s's icon has been complete.\n", user_name); - /* Insert the icon to messages that had been received. */ + /* Insert the icon to messages that has been received. */ insert_requested_icon(user_name, service); fin_got_icon_cb: @@ -503,12 +502,12 @@ suffix = "wassr"; break; case identica_service: + hash = icon_hash[identica_service]; suffix = "identica"; - hash = icon_hash[identica_service]; break; case jisko_service: + hash = icon_hash[jisko_service]; suffix = "jisko"; - hash = icon_hash[jisko_service]; break; default: twitter_debug("unknown service\n"); @@ -522,7 +521,7 @@ * must exist here. */ data = (icon_data *)g_hash_table_lookup(hash, user_name); - /* if img has been registerd, just return */ + /* if the image is in a hash, just return */ if(data && data->pixbuf && !renew) return;