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:
parent
864939b809
commit
9d075c9805
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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)
|
||||||
{
|
{
|
||||||
|
@ -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);
|
||||||
|
@ -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) {}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user