diff libpurple/sound-loader.c @ 25094:c32dd71d0658

Fixed a few small problems with the sound loader and sound theme
author Justin Rodriguez <ffdragon@soc.pidgin.im>
date Fri, 27 Jun 2008 18:04:29 +0000
parents 655a37bc0eb0
children fbf72bbd1084
line wrap: on
line diff
--- 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);
 	}