From cbb35a07b0edb1db499d07894d4c01d220def2cf Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Sun, 26 Jan 2014 18:39:56 +0100 Subject: [PATCH] gui: Simplify print_status_bar(). Curses is always active at this point, so remove the check. Moreover, refreshing of all other windows is performed in init_wins(), so move the call to wrefresh() there to be consistent. Finally, the comment of this function is rather pointless, so remove that as well. --- gui.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/gui.c b/gui.c index e4849fba..63e0090f 100644 --- a/gui.c +++ b/gui.c @@ -360,20 +360,14 @@ __printf_2_3 static void print_in_bar(int color, const char *fmt,...) wrefresh(in.win); } -/* - * update the status bar - */ static void print_status_bar(void) { char *tmp; - if (!curses_active) - return; tmp = para_strdup("para_gui " PACKAGE_VERSION " (hit ? for help)"); wmove(sb.win, 0, 0); align_str(sb.win, tmp, sb.cols, CENTER); free(tmp); - wrefresh(sb.win); } /* @@ -685,8 +679,8 @@ static void init_wins(int top_lines) //wclear(bot.win); wnoutrefresh(top.win); wnoutrefresh(bot.win); - //wnoutrefresh(sb.win); print_status_bar(); + wnoutrefresh(sb.win); wnoutrefresh(in.win); wnoutrefresh(sep.win); doupdate(); -- 2.39.2