aboutsummaryrefslogtreecommitdiff
path: root/src/ui_txtwindow.c
diff options
context:
space:
mode:
authortoni <toni@devlap.local>2015-11-17 09:53:47 +0100
committertoni <toni@devlap.local>2015-11-17 09:53:47 +0100
commitecd71a9af7f74d1cd73ef015b767aa63dc0605d9 (patch)
tree868229934b70413e2e77aa365358289d922868a9 /src/ui_txtwindow.c
parentcb8ac81c8c538f4a02edb5c2762cfbc5f5adef88 (diff)
- atmout/pthread_cond_timedwait bug (still not fixed)
- txtwindow update callback added - better update funcs
Diffstat (limited to 'src/ui_txtwindow.c')
-rw-r--r--src/ui_txtwindow.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/ui_txtwindow.c b/src/ui_txtwindow.c
index 5852c32..90d152d 100644
--- a/src/ui_txtwindow.c
+++ b/src/ui_txtwindow.c
@@ -96,6 +96,11 @@ txtwindow_cb(WINDOW *win, void *data, bool timedout)
if (a->active == true) {
print_wnd(a);
+ if (a->window_func) {
+ attron(a->text_attrs);
+ a->window_func(win, a, timedout);
+ attroff(a->text_attrs);
+ }
}
return (UICB_OK);
}
@@ -173,3 +178,10 @@ set_txtwindow_color(struct txtwindow *a, chtype wnd, chtype txt)
a->text_attrs = txt;
}
+void
+set_txtwindow_dim(struct txtwindow *a, unsigned int w, unsigned int h)
+{
+ a->width = w;
+ a->height = h;
+}
+