pidgin: 8cb1331f: Fix some copy/paste errors in PidginBlis..

paul at darkrain42.org paul at darkrain42.org
Sun Apr 12 18:50:44 EDT 2009


-----------------------------------------------------------------
Revision: 8cb1331f389927855aabd3a2abdb5700a16310ca
Ancestor: 866c5b885418ce4aaf24c6e4df72c3dc128e1ab4
Author: paul at darkrain42.org
Date: 2009-04-12T21:53:41
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/8cb1331f389927855aabd3a2abdb5700a16310ca

Modified files:
        pidgin/gtkblist-theme-loader.c

ChangeLog: 

Fix some copy/paste errors in PidginBlistThemeLoader (was leaking online->color)

-------------- next part --------------
============================================================
--- pidgin/gtkblist-theme-loader.c	0406fe4ae7195573bf9035477b0475153929505c
+++ pidgin/gtkblist-theme-loader.c	0c6a1b33ed5d252136399916dcda6b8474d81f9e
@@ -172,15 +172,15 @@ pidgin_blist_loader_build(const gchar *d
 	if ((success = (success && sub_node != NULL && (sub_sub_node = xmlnode_get_child(sub_node, "offline_text")) != NULL))) {
 		offline->font = g_strdup(xmlnode_get_attrib(sub_sub_node, "font"));
 		if(gdk_color_parse(temp = xmlnode_get_attrib(sub_sub_node, "color"), &color))
-			online->color = g_strdup(temp);
-		else online->color = g_strdup(DEFAULT_TEXT_COLOR);
+			offline->color = g_strdup(temp);
+		else offline->color = g_strdup(DEFAULT_TEXT_COLOR);
 	}
 
 	if ((success = (success && sub_node != NULL && (sub_sub_node = xmlnode_get_child(sub_node, "idle_text")) != NULL))) {
 		idle->font = g_strdup(xmlnode_get_attrib(sub_sub_node, "font"));
 		if(gdk_color_parse(temp = xmlnode_get_attrib(sub_sub_node, "color"), &color))
 			idle->color = g_strdup(temp);
-		else online->color = g_strdup(DEFAULT_TEXT_COLOR);
+		else idle->color = g_strdup(DEFAULT_TEXT_COLOR);
 	}
 
 	if ((success = (success && sub_node != NULL && (sub_sub_node = xmlnode_get_child(sub_node, "message_text")) != NULL))) {


More information about the Commits mailing list