From: ewt Date: Tue, 26 Mar 1996 04:13:26 +0000 (+0000) Subject: added COLORSET_LABEL, newtDefaultEventHandler() X-Git-Tag: 0-1~48 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8735cc88a3fb4610c9deacd7093774ec0c97b4c0;p=thirdparty%2Fnewt.git added COLORSET_LABEL, newtDefaultEventHandler() --- diff --git a/newt.c b/newt.c index 0ce8c29..c658058 100644 --- a/newt.c +++ b/newt.c @@ -38,6 +38,7 @@ struct newtColors newtDefaultColorPalette = { "black", "green", /* checkbox fg, fg */ "green", "black", /* active checkbox fg, bg */ "yellow", "red", /* entry box fg, bg */ + "blue", "lightgray", /* label fg, bg */ }; struct keymap keymap[] = { @@ -110,6 +111,7 @@ void newtSetColors(struct newtColors colors) { SLtt_set_color(COLORSET_ACTCHECKBOX, "", colors.actCheckboxFg, colors.actCheckboxBg); SLtt_set_color(COLORSET_ENTRY, "", colors.entryFg, colors.entryBg); + SLtt_set_color(COLORSET_LABEL, "", colors.labelFg, colors.labelBg); } int newtGetKey(void) { @@ -332,3 +334,11 @@ void newtDelay(int usecs) { select(0, &set, &set, &set, &tv); } + +struct eventResult newtDefaultEventHandler(struct newtComponent * c, + struct event ev) { + struct eventResult er; + + er.result = ER_IGNORED; + return er; +} diff --git a/newt_pr.h b/newt_pr.h index f90fd21..bd7fe97 100644 --- a/newt_pr.h +++ b/newt_pr.h @@ -11,6 +11,7 @@ #define COLORSET_CHECKBOX 9 #define COLORSET_ACTCHECKBOX 10 #define COLORSET_ENTRY 11 +#define COLORSET_LABEL 12 void newtGotorc(int row, int col); void newtDrawBox(int left, int top, int width, int height, int shadow); @@ -50,4 +51,7 @@ struct componentOps { void (* destroy)(struct newtComponent * c); } ; +struct eventResult newtDefaultEventHandler(struct newtComponent * c, + struct event ev); + #endif /* H_NEWT_PR */