comparison libpurple/account.c @ 16482:3be560001d26

Kill some compiler warnings and TODOs of mine.
author Richard Laager <rlaager@wiktel.com>
date Wed, 25 Apr 2007 23:29:46 +0000
parents 4fc51a87ce42
children 5e47b3427b28
comparison
equal deleted inserted replaced
16481:6f197c81d478 16482:3be560001d26
738 738
739 /* Read an old buddyicon */ 739 /* Read an old buddyicon */
740 child = xmlnode_get_child(node, "buddyicon"); 740 child = xmlnode_get_child(node, "buddyicon");
741 if ((child != NULL) && ((data = xmlnode_get_data(child)) != NULL)) 741 if ((child != NULL) && ((data = xmlnode_get_data(child)) != NULL))
742 { 742 {
743 // TODO: Read the file and cache it using the new system 743 const char *dirname = purple_buddy_icons_get_cache_dir();
744 char *filename = g_build_filename(dirname, data, NULL);
745 gchar *contents;
746 gsize len;
747
748 if (g_file_get_contents(filename, &contents, &len, NULL))
749 {
750 purple_buddy_icons_set_account_icon(ret, (guchar *)contents, len);
751 }
752
753 g_free(filename);
744 g_free(data); 754 g_free(data);
745 } 755 }
746 756
747 /* Read settings (both core and UI) */ 757 /* Read settings (both core and UI) */
748 for (child = xmlnode_get_child(node, "settings"); child != NULL; 758 for (child = xmlnode_get_child(node, "settings"); child != NULL;