changeset 25385:075aa09253e7

Fix setting custom colorpairs containing 'default', thanks to jieryn on IRC.
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Thu, 29 Jan 2009 02:12:16 +0000
parents 0e2731b9875c
children 2c80f3d839c7
files finch/libgnt/gntcolors.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/finch/libgnt/gntcolors.c	Wed Jan 28 10:27:53 2009 +0000
+++ b/finch/libgnt/gntcolors.c	Thu Jan 29 02:12:16 2009 +0000
@@ -208,7 +208,7 @@
 				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 @@
 			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);