comparison finch/libgnt/gntcolors.c @ 21694:2de3a2de5f13

Update the changelogs. Correct the man page. Allow 'default' to mean the default color (-1).
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Fri, 30 Nov 2007 18:10:16 +0000
parents 3ed9b027479d
children c9f02ad22269 c38d72677c8a
comparison
equal deleted inserted replaced
21693:052f5c37e881 21694:2de3a2de5f13
162 color = custom ? GNT_COLOR_DARK_GRAY : COLOR_BLACK; 162 color = custom ? GNT_COLOR_DARK_GRAY : COLOR_BLACK;
163 else if (strcmp(key, "magenta") == 0) 163 else if (strcmp(key, "magenta") == 0)
164 color = COLOR_MAGENTA; 164 color = COLOR_MAGENTA;
165 else if (strcmp(key, "cyan") == 0) 165 else if (strcmp(key, "cyan") == 0)
166 color = COLOR_CYAN; 166 color = COLOR_CYAN;
167 else 167 else if (strcmp(key, "default") == 0)
168 color = -1; 168 color = -1;
169 else {
170 g_warning("Invalid color name: %s\n", key);
171 color = -1;
172 }
169 return color; 173 return color;
170 } 174 }
171 175
172 void gnt_colors_parse(GKeyFile *kfile) 176 void gnt_colors_parse(GKeyFile *kfile)
173 { 177 {