pidgin: 63aa251f: Fix setting custom colorpairs containing...

sadrul at pidgin.im sadrul at pidgin.im
Wed Jan 28 21:10:22 EST 2009


-----------------------------------------------------------------
Revision: 63aa251f751a7d9109295f53144b2166fd090b2e
Ancestor: 2ba63306963eb1bfddbb853da79bd2d2e829af2d
Author: sadrul at pidgin.im
Date: 2009-01-29T02:12:16
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/63aa251f751a7d9109295f53144b2166fd090b2e

Modified files:
        finch/libgnt/gntcolors.c

ChangeLog: 

Fix setting custom colorpairs containing 'default', thanks to jieryn on
IRC.

-------------- next part --------------
============================================================
--- finch/libgnt/gntcolors.c	2489e4a5e6eddddc7533d3342c3472136824f8d1
+++ finch/libgnt/gntcolors.c	2611e83d7b098cbb3c61b94bc3ecd516eedc4c79
@@ -208,7 +208,7 @@ void gnt_colors_parse(GKeyFile *kfile)
 				key = g_ascii_strdown(key, -1);
 				color = gnt_colors_get_color(key);
 				g_free(key);
-				if (color == -1)
+				if (color == -EINVAL)
 					continue;
 
 				init_color(color, r, g, b);
@@ -251,7 +251,7 @@ void gnt_color_pairs_parse(GKeyFile *kfi
 			int bg = gnt_colors_get_color(bgc);
 			g_free(fgc);
 			g_free(bgc);
-			if (fg == -1 || bg == -1)
+			if (fg == -EINVAL || bg == -EINVAL)
 				continue;
 
 			key = g_ascii_strdown(key, -1);


More information about the Commits mailing list