diff options
author | James Booth <boothj5@gmail.com> | 2013-10-07 01:30:20 +0100 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2013-10-07 01:30:20 +0100 |
commit | 4cbfd5f0f989a2b34c00f349074982d4de414c59 (patch) | |
tree | 2bef7a2a29ce418f5c2a339e55fd2f486d2bd685 | |
parent | c253d3cd1be5373e73dffd14142c9e4364170395 (diff) | |
download | profani-tty-4cbfd5f0f989a2b34c00f349074982d4de414c59.tar.gz |
Removed _win_show_error_msg
-rw-r--r-- | src/ui/core.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/src/ui/core.c b/src/ui/core.c index 539988f0..57155e03 100644 --- a/src/ui/core.c +++ b/src/ui/core.c @@ -63,7 +63,6 @@ static GTimer *ui_idle_time; static void _win_show_user(WINDOW *win, const char * const user, const int colour); static void _win_show_message(WINDOW *win, const char * const message); -static void _win_show_error_msg(WINDOW *win, const char * const message); static void _win_handle_switch(const wint_t * const ch); static void _win_handle_page(const wint_t * const ch); static void _win_show_history(WINDOW *win, int win_index, @@ -756,8 +755,7 @@ ui_print_error_from_recipient(const char * const from, const char *err_msg) ProfWin *window = wins_get_by_recipient(from); if (window != NULL) { - win_print_time(window, '-'); - _win_show_error_msg(window->win, err_msg); + win_print_line(window, '-', COLOUR_ERROR, "%s", err_msg); if (wins_is_current(window)) { wins_refresh_current(); } @@ -1403,14 +1401,6 @@ _win_show_message(WINDOW *win, const char * const message) } static void -_win_show_error_msg(WINDOW *win, const char * const message) -{ - wattron(win, COLOUR_ERROR); - wprintw(win, "%s\n", message); - wattroff(win, COLOUR_ERROR); -} - -static void _win_handle_switch(const wint_t * const ch) { if (*ch == KEY_F(1)) { |