]> git.ipfire.org Git - thirdparty/newt.git/commitdiff
added a getvalue call
authorewt <ewt>
Tue, 28 Apr 1998 06:33:14 +0000 (06:33 +0000)
committerewt <ewt>
Tue, 28 Apr 1998 06:33:14 +0000 (06:33 +0000)
checkbox.c

index bb2cb55b4623bd20d37d52d36258c9e07e243e3c..808f7c1f396c123e8cb3985928c56377cfb658f1 100644 (file)
@@ -106,6 +106,12 @@ newtComponent newtRadioGetCurrent(newtComponent setMember) {
     return setMember;
 }
 
+char newtCheckboxGetValue(newtComponent co) {
+    struct checkbox * cb = co->data;
+
+    return cb->value;
+}
+
 newtComponent newtCheckbox(int left, int top, const char * text, char defValue,
                           const char * seq, char * result) {
     newtComponent co;