aboutsummaryrefslogtreecommitdiff
path: root/ui_nwindow.c
diff options
context:
space:
mode:
Diffstat (limited to 'ui_nwindow.c')
-rw-r--r--ui_nwindow.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/ui_nwindow.c b/ui_nwindow.c
index 1b88319..aa1812d 100644
--- a/ui_nwindow.c
+++ b/ui_nwindow.c
@@ -94,7 +94,10 @@ txtwindow_cb(WINDOW *win, void *data, bool timedout)
void inline
register_txtwindow(struct txtwindow *a)
{
- register_ui_elt(txtwindow_cb, (void *) a, NULL);
+ struct ui_callbacks cbs;
+ cbs.ui_element = txtwindow_cb;
+ cbs.ui_input = NULL;
+ register_ui_elt(&cbs, (void *) a, NULL);
}
static size_t