aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--widget.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/widget.h b/widget.h
index c9a9a8a..e60ffe7 100644
--- a/widget.h
+++ b/widget.h
@@ -1,9 +1,12 @@
-enum { LABEL_SIZE = 128 };
+enum {
+ FIELD_SIZE = 64,
+ LABEL_SIZE = 128,
+};
/* Field is a floating point number input field. */
typedef struct {
- char buf[64];
+ char buf[FIELD_SIZE];
double value;
int invalid;
} w_Field;