X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=gui.c;h=63e0090f03ca3641aa9f3675f438c8c02128e0d5;hp=e03fb28752511778a8c1a1b4d73e898b4e854578;hb=cbb35a07b0edb1db499d07894d4c01d220def2cf;hpb=e8ca7526ddebc98f3023736f77fa13b65034767b diff --git a/gui.c b/gui.c index e03fb287..63e0090f 100644 --- a/gui.c +++ b/gui.c @@ -30,8 +30,6 @@ INIT_GUI_ERRLISTS; static char *stat_content[NUM_STAT_ITEMS]; -#define STANDARD_STATUS_BAR "para_gui " PACKAGE_VERSION " (hit ? for help)" - static int signal_pipe; static struct gui_window { @@ -362,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(STANDARD_STATUS_BAR); + 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); } /* @@ -679,7 +671,6 @@ static void init_wins(int top_lines) keypad(bot.win, 1); keypad(sb.win, 1); keypad(in.win, 1); - print_status_bar(); } wmove(sep.win, 0, 0); for (i = 1; i <= COLS; i++) @@ -688,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();