From bec267537d8a689d18559efd29b8619800ad2da6 Mon Sep 17 00:00:00 2001 From: toni Date: Wed, 6 Jul 2016 10:51:32 +0200 Subject: blink blink --- src/ui_elements.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/ui_elements.c') diff --git a/src/ui_elements.c b/src/ui_elements.c index aa60573..78aba85 100644 --- a/src/ui_elements.c +++ b/src/ui_elements.c @@ -63,13 +63,12 @@ void show_info_wnd(struct txtwindow *wnd, char *title, char *text, chtype fore, chtype back, bool activate, bool blink) { ui_thrd_suspend(); + set_txtwindow_blink(wnd, blink); set_txtwindow_color(wnd, fore, back); set_txtwindow_title(wnd, title); set_txtwindow_text(wnd, text); if (activate) set_txtwindow_active(wnd, true); - if (blink) - set_txtwindow_blink(wnd, true); ui_thrd_resume(); ui_thrd_force_update(); } @@ -97,7 +96,7 @@ passwd_input_cb(WINDOW *wnd, void *data, int key) if (ui_ipc_msgcount(MQ_IF) > 0) { ui_ipc_msgrecv(MQ_IF, ipc_buf); - show_info_wnd(infownd, "ERROR", ipc_buf, COLOR_PAIR(4), COLOR_PAIR(4) | A_BOLD, false, true); + show_info_wnd(infownd, "ERROR", ipc_buf, COLOR_PAIR(4), COLOR_PAIR(4), false, true); while (wgetch(stdscr) != '\n') { }; } -- cgit v1.2.3