Mercurial > pidgin
comparison finch/libgnt/gntcolors.c @ 21739:84d1d66c73b6
disapproval of revision '872484bf9e23965956bacedc374083deeb3329d4'
author | Richard Nelson <wabz@pidgin.im> |
---|---|
date | Mon, 03 Dec 2007 06:55:53 +0000 |
parents | c9f02ad22269 |
children |
comparison
equal
deleted
inserted
replaced
21721:c9f02ad22269 | 21739:84d1d66c73b6 |
---|---|
292 pair == GNT_COLOR_TITLE_D || pair == GNT_COLOR_DISABLED) ? 0 : A_STANDOUT)); | 292 pair == GNT_COLOR_TITLE_D || pair == GNT_COLOR_DISABLED) ? 0 : A_STANDOUT)); |
293 } | 293 } |
294 | 294 |
295 int gnt_color_add_pair(int fg, int bg) | 295 int gnt_color_add_pair(int fg, int bg) |
296 { | 296 { |
297 int i; | |
298 for (i = 1; i < custom_type; i++) { | |
299 short f, b; | |
300 if (pair_content(i, &f, &b) != ERR && | |
301 f == fg && b == bg) | |
302 return i; | |
303 } | |
304 init_pair(custom_type, fg, bg); | 297 init_pair(custom_type, fg, bg); |
305 return custom_type++; | 298 return custom_type++; |
306 } | 299 } |