From: Andre Noll Date: Sun, 26 Jan 2014 17:39:56 +0000 (+0100) Subject: gui: Simplify print_status_bar(). X-Git-Tag: v0.5.3~12^2~36 X-Git-Url: http://git.tue.mpg.de/?a=commitdiff_plain;h=cbb35a07b0edb1db499d07894d4c01d220def2cf;p=paraslash.git 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. --- 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();