mirror of
https://github.com/profanity-im/profanity.git
synced 2025-01-03 14:57:42 -05:00
Remove implicit refresh from ProfWin->print_line
This commit is contained in:
parent
39fa133580
commit
3cc080b06a
@ -826,6 +826,7 @@ ui_current_print_line(const char * const msg, ...)
|
||||
va_start(arg, msg);
|
||||
current->print_line(current, msg, arg);
|
||||
va_end(arg);
|
||||
current->refresh_win(current);
|
||||
}
|
||||
|
||||
void
|
||||
|
@ -61,7 +61,7 @@ win_create(const char * const title, int cols, win_type_t type)
|
||||
|
||||
new_win->print_time = _win_print_time;
|
||||
new_win->print_line = _win_print_line;
|
||||
new_win->refresh = _win_refresh;
|
||||
new_win->refresh_win = _win_refresh;
|
||||
new_win->presence_colour_on = _win_presence_colour_on;
|
||||
new_win->presence_colour_off = _win_presence_colour_off;
|
||||
new_win->show_contact = _win_show_contact;
|
||||
@ -113,7 +113,6 @@ _win_print_line(ProfWin *self, const char * const msg, ...)
|
||||
wprintw(self->win, "%s\n", fmt_msg->str);
|
||||
g_string_free(fmt_msg, TRUE);
|
||||
va_end(arg);
|
||||
_win_refresh(self);
|
||||
}
|
||||
|
||||
static void
|
||||
@ -215,6 +214,7 @@ _muc_handle_error_message(ProfWin *self, const char * const from,
|
||||
gboolean handled = FALSE;
|
||||
if (g_strcmp0(err_msg, "conflict") == 0) {
|
||||
_win_print_line(self, "Nickname already in use.");
|
||||
_win_refresh(self);
|
||||
handled = TRUE;
|
||||
}
|
||||
|
||||
|
@ -54,7 +54,7 @@ typedef struct prof_win_t {
|
||||
int history_shown;
|
||||
void (*print_time)(struct prof_win_t *self, char show_char);
|
||||
void (*print_line)(struct prof_win_t *self, const char * const msg, ...);
|
||||
void (*refresh)(struct prof_win_t *self);
|
||||
void (*refresh_win)(struct prof_win_t *self);
|
||||
void (*presence_colour_on)(struct prof_win_t *self, const char * const presence);
|
||||
void (*presence_colour_off)(struct prof_win_t *self, const char * const presence);
|
||||
void (*show_contact)(struct prof_win_t *self, PContact contact);
|
||||
|
Loading…
Reference in New Issue
Block a user