# HG changeset patch # User mikanbako # Date 1214066688 -32400 # Node ID 7600060155199e8babb2b68806963326fe51f77b # Parent 6843c3e6477fd700bfdacc0ebcf829d3609efd4b added that to show follower's icons through http://twitter.g.hatena.ne.jp/ikko615/20080107/1199703400 diff -r 6843c3e6477f -r 760006015519 pidgin-twitter.c --- a/pidgin-twitter.c Sat Jun 21 14:47:35 2008 +0900 +++ b/pidgin-twitter.c Sun Jun 22 01:44:48 2008 +0900 @@ -899,6 +899,7 @@ GMatchInfo *match_info = NULL; gchar *user_name = NULL; gchar *message = NULL; + gchar *url = NULL; PurpleUtilFetchUrlData *fetch_data = NULL; /* get user's name */ @@ -936,10 +937,15 @@ /* The string object are owned by the list. */ requested_users = g_list_append(requested_users, user_name); - - fetch_data = purple_util_fetch_url( - "http://static.twitter.com/images/default_profile_normal.png", - TRUE, NULL, TRUE, downloaded_icon_cb, user_name); + /* Create the URL of the user's icon. + * See http://twitter.g.hatena.ne.jp/ikko615/20080107/1199703400 + */ + url = g_strdup_printf("http://img.twitty.jp/twitter/user/%s/m.gif", + user_name); + + fetch_data = purple_util_fetch_url(url, TRUE, NULL, TRUE, + downloaded_icon_cb, user_name); + g_free(url); requestings = g_list_append(requestings, fetch_data); twitter_debug("request %s's icon\n", user_name);