changeset 63:760006015519

added that to show follower's icons through http://twitter.g.hatena.ne.jp/ikko615/20080107/1199703400
author mikanbako <maoutwo@gmail.com>
date Sun, 22 Jun 2008 01:44:48 +0900
parents 6843c3e6477f
children da37857f3033
files pidgin-twitter.c
diffstat 1 files changed, 10 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- 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);