Mercurial > pidgin.yaz
comparison finch/libgnt/gntcolors.c @ 23311:ea341703b1d3
msgcolor command to change colors of messages in conversations.
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Sat, 07 Jun 2008 05:23:54 +0000 |
parents | c38d72677c8a |
children | e2e57d3c0578 |
comparison
equal
deleted
inserted
replaced
23310:f3b7a07a7607 | 23311:ea341703b1d3 |
---|---|
27 #include "gntcolors.h" | 27 #include "gntcolors.h" |
28 #include "gntstyle.h" | 28 #include "gntstyle.h" |
29 | 29 |
30 #include <glib.h> | 30 #include <glib.h> |
31 | 31 |
32 #include <errno.h> | |
32 #include <stdlib.h> | 33 #include <stdlib.h> |
33 #include <string.h> | 34 #include <string.h> |
34 | 35 |
35 static gboolean hascolors; | 36 static gboolean hascolors; |
36 static int custom_type = GNT_COLORS; | 37 static int custom_type = GNT_COLORS; |
166 color = COLOR_CYAN; | 167 color = COLOR_CYAN; |
167 else if (strcmp(key, "default") == 0) | 168 else if (strcmp(key, "default") == 0) |
168 color = -1; | 169 color = -1; |
169 else { | 170 else { |
170 g_warning("Invalid color name: %s\n", key); | 171 g_warning("Invalid color name: %s\n", key); |
171 color = -1; | 172 color = -EINVAL; |
172 } | 173 } |
173 return color; | 174 return color; |
174 } | 175 } |
175 | 176 |
176 void gnt_colors_parse(GKeyFile *kfile) | 177 void gnt_colors_parse(GKeyFile *kfile) |