From ecd71a9af7f74d1cd73ef015b767aa63dc0605d9 Mon Sep 17 00:00:00 2001 From: toni <toni@devlap.local> Date: Tue, 17 Nov 2015 09:53:47 +0100 Subject: - atmout/pthread_cond_timedwait bug (still not fixed) - txtwindow update callback added - better update funcs --- src/ui_txtwindow.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/ui_txtwindow.c') 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; +} + -- cgit v1.2.3