pidgin: e5b46031: More debugging informations when updatin...

tomkiewicz at cpw.pidgin.im tomkiewicz at cpw.pidgin.im
Thu Jul 14 18:06:01 EDT 2011


----------------------------------------------------------------------
Revision: e5b4603162afbfc6b1b93e8766d810c2d4243cd5
Parent:   0c632f590d463f7d1615272d2651095b77504a8a
Author:   tomkiewicz at cpw.pidgin.im
Date:     07/14/11 17:59:44
Branch:   im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/e5b4603162afbfc6b1b93e8766d810c2d4243cd5

Changelog: 

More debugging informations when updating avatars in Gadu-Gadu

Changes against parent 0c632f590d463f7d1615272d2651095b77504a8a

  patched  libpurple/protocols/gg/gg.c

-------------- next part --------------
============================================================
--- libpurple/protocols/gg/gg.c	8f2cf612e96f37d3b6358cc3b699e406b03e5431
+++ libpurple/protocols/gg/gg.c	5e9b88cdf880b02c07006ea2545301ffb9460fdc
@@ -918,6 +918,9 @@ static void gg_fetch_avatar_cb(PurpleUti
 	PurpleBuddy *buddy;
 	gpointer buddy_icon_data;
 
+	purple_debug_info("gg", "gg_fetch_avatar_cb: got avatar image for %s\n",
+		d->uin);
+
 	/* FIXME: This shouldn't be necessary */
 	if (!PURPLE_CONNECTION_IS_VALID(d->gc)) {
 		g_free(d->uin);
@@ -936,7 +939,8 @@ static void gg_fetch_avatar_cb(PurpleUti
 
 	purple_buddy_icons_set_for_user(account, purple_buddy_get_name(buddy),
 			buddy_icon_data, len, d->avatar_url);
-	purple_debug_info("gg", "UIN: %s should have avatar now\n", d->uin);
+	purple_debug_info("gg", "gg_fetch_avatar_cb: UIN %s should have avatar "
+		"now\n", d->uin);
 
 out:
 	g_free(d->uin);
@@ -1018,6 +1022,8 @@ static void gg_get_avatar_url_cb(PurpleU
 				data->uin = g_strdup(uin);
 				data->avatar_url = g_strdup(bigavatar);
 
+				purple_debug_info("gg", "gg_get_avatar_url_cb: "
+					"requesting avatar for %s\n", uin);
 				url_data = purple_util_fetch_url_request_len_with_account(account,
 						bigavatar, TRUE, "Mozilla/4.0 (compatible; MSIE 5.0)",
 						FALSE, NULL, FALSE, -1, gg_fetch_avatar_cb, data);


More information about the Commits mailing list