comparison finch/libgnt/gntcolors.c @ 31999:3007ca8322ef

Allow both spellings of grey, since this is user-visible.
author Elliott Sales de Andrade <qulogic@pidgin.im>
date Thu, 05 May 2011 06:22:20 +0000
parents f22eadbdc5d1
children
comparison
equal deleted inserted replaced
31998:62b11ad353eb 31999:3007ca8322ef
159 color = custom ? GNT_COLOR_GREEN : COLOR_GREEN; 159 color = custom ? GNT_COLOR_GREEN : COLOR_GREEN;
160 else if (strcmp(key, "blue") == 0) 160 else if (strcmp(key, "blue") == 0)
161 color = custom ? GNT_COLOR_BLUE : COLOR_BLUE; 161 color = custom ? GNT_COLOR_BLUE : COLOR_BLUE;
162 else if (strcmp(key, "white") == 0) 162 else if (strcmp(key, "white") == 0)
163 color = custom ? GNT_COLOR_WHITE : COLOR_WHITE; 163 color = custom ? GNT_COLOR_WHITE : COLOR_WHITE;
164 else if (strcmp(key, "gray") == 0) 164 else if (strcmp(key, "gray") == 0 || strcmp(key, "grey") == 0)
165 color = custom ? GNT_COLOR_GRAY : COLOR_YELLOW; /* eh? */ 165 color = custom ? GNT_COLOR_GRAY : COLOR_YELLOW; /* eh? */
166 else if (strcmp(key, "darkgray") == 0) 166 else if (strcmp(key, "darkgray") == 0 || strcmp(key, "darkgrey") == 0)
167 color = custom ? GNT_COLOR_DARK_GRAY : COLOR_BLACK; 167 color = custom ? GNT_COLOR_DARK_GRAY : COLOR_BLACK;
168 else if (strcmp(key, "magenta") == 0) 168 else if (strcmp(key, "magenta") == 0)
169 color = COLOR_MAGENTA; 169 color = COLOR_MAGENTA;
170 else if (strcmp(key, "cyan") == 0) 170 else if (strcmp(key, "cyan") == 0)
171 color = COLOR_CYAN; 171 color = COLOR_CYAN;