]> git.ipfire.org Git - thirdparty/newt.git/commitdiff
made newtDrawFrom externally visible
authorewt <ewt>
Thu, 20 Jun 1996 00:45:12 +0000 (00:45 +0000)
committerewt <ewt>
Thu, 20 Jun 1996 00:45:12 +0000 (00:45 +0000)
form.c
newt.h

diff --git a/form.c b/form.c
index 5ca549173f23d19fc061c83bfaf4e874611b3b2e..bf355f9f37e922be45dc30d160353ea4fc1c132f 100644 (file)
--- a/form.c
+++ b/form.c
@@ -30,13 +30,12 @@ struct form {
     int numRows;
 };
 
-static void formDraw(newtComponent co);
 static void gotoComponent(struct form * form, int newComp);
 static struct eventResult formEvent(newtComponent co, struct event ev);
 static struct eventResult sendEvent(newtComponent comp, struct event ev);
 
 static struct componentOps formOps = {
-    formDraw,
+    newtDrawForm,
     formEvent,
     newtFormDestroy,
 } ;
@@ -163,7 +162,7 @@ void newtFormAddComponents(newtComponent co, ...) {
     va_end(ap);
 }
 
-static void formDraw(newtComponent co) {
+void newtDrawForm(newtComponent co) {
     struct form * form = co->data;
     struct element * el;
     int i;
@@ -284,7 +283,7 @@ static struct eventResult formEvent(newtComponent co, struct event ev) {
 
            if (form->vertOffset < 0) form->vertOffset = 0;
 
-           formDraw(co);
+           newtDrawForm(co);
        }
 
        gotoComponent(form, new);
@@ -323,7 +322,7 @@ newtComponent newtRunForm(newtComponent co) {
     int key;
 
     /* first, draw all of the components */
-    formDraw(co);
+    newtDrawForm(co);
 
     if (form->currComp == -1) {
        gotoComponent(form, 0);
diff --git a/newt.h b/newt.h
index b7531f6909c59fb0115feba9a0ae1d791b87ba1a..ec1c9322cff3fdfb3e69ee9c49b778d5a0374985 100644 (file)
--- a/newt.h
+++ b/newt.h
@@ -76,6 +76,7 @@ void newtFormAddComponent(newtComponent form, newtComponent co);
 void newtFormAddComponents(newtComponent form, ...);
 void newtFormSetHeight(newtComponent co, int height);
 newtComponent newtRunForm(newtComponent form);
+void newtDrawForm(newtComponent form);
 
 #define NEWT_ENTRY_SCROLL      (1 << 0)
 #define NEWT_ENTRY_HIDDEN      (1 << 1)