X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;f=gui.c;h=284de0cb7778444c2b6936eb6c8d8a765370070e;hb=1833dfd4333e8c3099ba2fac39245e11fd123ae0;hp=6263c92000e9b091f3d5054f99da62d044a79c07;hpb=9905b62369f9bcbac3e779a4fc0759ceb1539df4;p=paraslash.git diff --git a/gui.c b/gui.c index 6263c920..284de0cb 100644 --- a/gui.c +++ b/gui.c @@ -73,7 +73,6 @@ enum gui_color_pair { COLOR_OUTPUT, COLOR_MSG, COLOR_ERRMSG, - COLOR_WELCOME, COLOR_SEPARATOR, COLOR_TOP, COLOR_BOT, @@ -360,20 +359,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); } /* @@ -595,15 +588,6 @@ __noreturn __printf_2_3 static void msg_n_exit(int ret, const char* fmt, ...) kill_pg_and_die(ret); } -static void print_welcome(void) -{ - if (loglevel > LL_NOTICE) - return; - outputf(COLOR_WELCOME, "Welcome to %s. Theme: %s", - version_single_line("gui"), theme.name); - wclrtoeol(bot.win); -} - /* * init all windows */ @@ -677,7 +661,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++) @@ -686,8 +669,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(); @@ -820,7 +803,6 @@ static void init_colors_or_die(void) init_pair_or_die(COLOR_OUTPUT, theme.output_fg, theme.output_bg); init_pair_or_die(COLOR_MSG, theme.msg_fg, theme.msg_bg); init_pair_or_die(COLOR_ERRMSG, theme.err_msg_fg, theme.err_msg_bg); - init_pair_or_die(COLOR_WELCOME, theme.welcome_fg, theme.welcome_bg); init_pair_or_die(COLOR_SEPARATOR, theme.sep_fg, theme.sep_bg); init_pair_or_die(COLOR_TOP, theme.default_fg, theme.default_bg); init_pair_or_die(COLOR_BOT, theme.default_fg, theme.default_bg); @@ -1544,7 +1526,6 @@ int main(int argc, char *argv[]) setlocale(LC_CTYPE, ""); initscr(); /* needed only once, always successful */ init_curses(); - print_welcome(); for (;;) { print_status_bar(); ret = do_select(GETCH_MODE);