1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-11-03 19:37:16 -05:00

Remove ui_win_error_line

This commit is contained in:
James Booth 2016-10-15 17:07:15 +01:00
parent 864939b809
commit 9d075c9805
4 changed files with 2 additions and 10 deletions

View File

@ -352,14 +352,14 @@ otr_on_message_send(ProfChatWin *chatwin, const char *const message, gboolean re
free(id); free(id);
return TRUE; return TRUE;
} else { } else {
ui_win_error_line((ProfWin*)chatwin, "Failed to encrypt and send message."); win_printf_line((ProfWin*)chatwin, THEME_ERROR, '-', "%s", "Failed to encrypt and send message.");
return TRUE; return TRUE;
} }
} }
// show error if not secure and policy always // show error if not secure and policy always
if (policy == PROF_OTRPOLICY_ALWAYS) { if (policy == PROF_OTRPOLICY_ALWAYS) {
ui_win_error_line((ProfWin*)chatwin, "Failed to send message. OTR policy set to: always"); win_printf_line((ProfWin*)chatwin, THEME_ERROR, '-', "%s", "Failed to send message. OTR policy set to: always");
return TRUE; return TRUE;
} }

View File

@ -757,12 +757,6 @@ ui_current_print_formatted_line(const char show_char, int attrs, const char *con
g_string_free(fmt_msg, TRUE); g_string_free(fmt_msg, TRUE);
} }
void
ui_win_error_line(ProfWin *window, const char *const msg)
{
win_printf_line(window, THEME_ERROR, '-', "%s", msg);
}
void void
ui_current_error_line(const char *const msg) ui_current_error_line(const char *const msg)
{ {

View File

@ -78,7 +78,6 @@ int ui_close_read_wins(void);
void ui_current_print_line(const char *const msg, ...); void ui_current_print_line(const char *const msg, ...);
void ui_current_print_formatted_line(const char show_char, int attrs, const char *const msg, ...); void ui_current_print_formatted_line(const char show_char, int attrs, const char *const msg, ...);
void ui_current_error_line(const char *const msg); void ui_current_error_line(const char *const msg);
void ui_win_error_line(ProfWin *window, const char *const msg);
void ui_close_win(int index); void ui_close_win(int index);
int ui_win_unread(int index); int ui_win_unread(int index);
char* ui_ask_password(void); char* ui_ask_password(void);

View File

@ -126,7 +126,6 @@ void ui_current_print_formatted_line(const char show_char, int attrs, const char
} }
void ui_current_error_line(const char * const msg) {} void ui_current_error_line(const char * const msg) {}
void ui_win_error_line(ProfWin *window, const char * const msg) {}
void ui_close_win(int index) {} void ui_close_win(int index) {}