]> git.ipfire.org Git - thirdparty/newt.git/commitdiff
added newtComponentTakesFocus()
authorewt <ewt>
Thu, 11 Sep 1997 18:52:36 +0000 (18:52 +0000)
committerewt <ewt>
Thu, 11 Sep 1997 18:52:36 +0000 (18:52 +0000)
form.c

diff --git a/form.c b/form.c
index d661a0068b1dc9c65de7cda13005e958bda41da8..e0d681eb94f9a5e391ab7add49460d0a16f54f82 100644 (file)
--- a/form.c
+++ b/form.c
@@ -500,6 +500,10 @@ void newtComponentAddCallback(newtComponent co, newtCallback f, void * data) {
     co->callbackData = data;
 }
 
+void newtComponentTakesFocus(newtComponent co, int val) {
+    co->takesFocus = val;
+}
+
 void newtFormSetBackground(newtComponent co, int color) {
     struct form * form = co->data;