libpurple/sound-loader.c

branch
soc.2008.themes
changeset 23651
2c04a707246d
parent 23648
a71b9a2345ea
child 23653
79934bf9a349
--- a/libpurple/sound-loader.c	Fri Jun 27 03:44:28 2008 +0000
+++ b/libpurple/sound-loader.c	Fri Jun 27 18:04:29 2008 +0000
@@ -71,15 +71,15 @@
 			    "name", xmlnode_get_attrib(root_node, "name"),
 			    "author", xmlnode_get_attrib(root_node, "author"),
 			    "image", preview,
+			    "directory", dir,
 			    "description", data, NULL);
 	
 	xmlnode_free(sub_node);
 
 	while ((sub_node = xmlnode_get_child(root_node, "event")) != NULL){
 		purple_sound_theme_set_file(theme,
-					    xmlnode_get_attrib(root_node, "name"),
-					    xmlnode_get_attrib(root_node, "file"));
-
+					    xmlnode_get_attrib(sub_node, "name"),
+					    xmlnode_get_attrib(sub_node, "file"));
 		xmlnode_free(sub_node);
 	}
 

mercurial