libpurple/protocols/gg/gg.c

branch
release-2.x.y
changeset 33201
db3a62c8006c
parent 31952
64be5338ab6b
child 33283
7b12c4d2c6d7
child 33422
581716bd2b64
--- a/libpurple/protocols/gg/gg.c	Sun Jul 22 19:52:09 2012 -0400
+++ b/libpurple/protocols/gg/gg.c	Sat Jul 28 19:34:15 2012 +0200
@@ -47,6 +47,8 @@
 #include "buddylist.h"
 #include "gg-utils.h"
 
+#define DISABLE_AVATARS 1
+
 static PurplePlugin *my_protocol = NULL;
 
 /* Prototypes */
@@ -903,6 +905,8 @@
 /* ----- INTERNAL CALLBACKS --------------------------------------------- */
 /* ---------------------------------------------------------------------- */
 
+#if !DISABLE_AVATARS
+
 struct gg_fetch_avatar_data
 {
 	PurpleConnection *gc;
@@ -1037,6 +1041,8 @@
 	g_free(bigavatar);
 }
 
+#endif
+
 /**
  * Try to update avatar of the buddy.
  *
@@ -1045,6 +1051,10 @@
  */
 static void ggp_update_buddy_avatar(PurpleConnection *gc, uin_t uin)
 {
+#if DISABLE_AVATARS
+	purple_debug_warning("gg", "ggp_update_buddy_avatar: disabled, please "
+		"update to 3.0.0, when available\n");
+#else
 	gchar *avatarurl;
 	PurpleUtilFetchUrlData *url_data;
 
@@ -1058,6 +1068,7 @@
 			gg_get_avatar_url_cb, gc);
 
 	g_free(avatarurl);
+#endif
 }
 
 /**

mercurial