mirror of
https://github.com/profanity-im/profanity.git
synced 2025-01-03 14:57:42 -05:00
Removed _win_show_error_msg
This commit is contained in:
parent
c253d3cd1b
commit
4cbfd5f0f9
@ -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();
|
||||
}
|
||||
@ -1402,14 +1400,6 @@ _win_show_message(WINDOW *win, const char * const message)
|
||||
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
|
||||
_win_handle_switch(const wint_t * const ch)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user