diff libpurple/protocols/qq/buddy_info.c @ 16373:c9b4ff420140

The buddy icon code as it stands, with lots of bugs and design flaws.
author Richard Laager <rlaager@wiktel.com>
date Mon, 23 Apr 2007 17:39:58 +0000
parents 85d5942e80e9
children e0c9a46b459f
line wrap: on
line diff
--- a/libpurple/protocols/qq/buddy_info.c	Mon Apr 23 17:19:27 2007 +0000
+++ b/libpurple/protocols/qq/buddy_info.c	Mon Apr 23 17:39:58 2007 +0000
@@ -545,8 +545,7 @@
 		data_len = fread(data, 1, st.st_size, file);
 		fclose(file);
 		purple_buddy_icons_set_for_user(account, who, data, data_len);
-		icon = purple_buddy_icons_find(account, who);
-		purple_buddy_icon_set_path(icon, iconfile);
+		// TODO: Set a blist setting or something
 	}
 }
 
@@ -609,7 +608,8 @@
 	gchar *icon_path;
 	PurpleBuddyIcon *icon = purple_buddy_icons_find(account, name);
 	gchar *icon_num_str = face_to_icon_str(face);
-	const gchar *old_path = purple_buddy_icon_get_path(icon);
+	// TODO: This needs to use a blist setting or something.
+	const gchar *old_path = NULL;
 	const gchar *buddy_icon_dir = qq_buddy_icon_dir();
 
 	icon_path = g_strconcat(buddy_icon_dir, G_DIR_SEPARATOR_S, QQ_ICON_PREFIX,