Mercurial > pidgin.yaz
diff 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 |
line wrap: on
line diff
--- a/finch/libgnt/gntcolors.c Fri Nov 30 09:22:44 2007 +0000 +++ b/finch/libgnt/gntcolors.c Fri Nov 30 18:10:16 2007 +0000 @@ -164,8 +164,12 @@ color = COLOR_MAGENTA; else if (strcmp(key, "cyan") == 0) color = COLOR_CYAN; - else + else if (strcmp(key, "default") == 0) color = -1; + else { + g_warning("Invalid color name: %s\n", key); + color = -1; + } return color; }