]> git.ipfire.org Git - thirdparty/newt.git/commitdiff
added COLORSET_LABEL, newtDefaultEventHandler()
authorewt <ewt>
Tue, 26 Mar 1996 04:13:26 +0000 (04:13 +0000)
committerewt <ewt>
Tue, 26 Mar 1996 04:13:26 +0000 (04:13 +0000)
newt.c
newt_pr.h

diff --git a/newt.c b/newt.c
index 0ce8c29218e7eebc0663e76c9000d7cdc4da4a36..c658058eead8c8ac1ba190b543141b6e780f5883 100644 (file)
--- 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;
+}
index f90fd211148189a3f7b4485540e24dbcc8da88d8..bd7fe973f5b3cee5654de3969a7624b3547f4fae 100644 (file)
--- 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 */