1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-09-29 19:56:07 -04:00

Removed _win_show_error_msg

This commit is contained in:
James Booth 2013-10-07 01:30:20 +01:00
parent c253d3cd1b
commit 4cbfd5f0f9

View File

@ -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_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_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_switch(const wint_t * const ch);
static void _win_handle_page(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, 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); ProfWin *window = wins_get_by_recipient(from);
if (window != NULL) { if (window != NULL) {
win_print_time(window, '-'); win_print_line(window, '-', COLOUR_ERROR, "%s", err_msg);
_win_show_error_msg(window->win, err_msg);
if (wins_is_current(window)) { if (wins_is_current(window)) {
wins_refresh_current(); wins_refresh_current();
} }
@ -1402,14 +1400,6 @@ _win_show_message(WINDOW *win, const char * const message)
wprintw(win, "\n"); wprintw(win, "\n");
} }
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 static void
_win_handle_switch(const wint_t * const ch) _win_handle_switch(const wint_t * const ch)
{ {