mirror of
https://github.com/profanity-im/profanity.git
synced 2024-12-04 14:46:46 -05:00
Merge branch 'master' into pgp
This commit is contained in:
commit
d5188a160e
@ -69,8 +69,7 @@ cl_ev_send_msg(ProfChatWin *chatwin, const char * const msg)
|
||||
prof_otrsendres_t res = otr_on_message_send(chatwin->barejid, msg);
|
||||
if (res != PROF_OTRSUCCESS) {
|
||||
char *errmsg = otr_senderror_str(res);
|
||||
// TODO reference passed window
|
||||
ui_current_error_line(errmsg);
|
||||
ui_win_error_line((ProfWin*)chatwin, errmsg);
|
||||
}
|
||||
#else
|
||||
char *id = message_send_chat(chatwin->barejid, msg);
|
||||
|
@ -1296,6 +1296,12 @@ ui_current_print_formatted_line(const char show_char, int attrs, const char * co
|
||||
g_string_free(fmt_msg, TRUE);
|
||||
}
|
||||
|
||||
void
|
||||
ui_win_error_line(ProfWin *window, const char * const msg)
|
||||
{
|
||||
win_print(window, '-', NULL, 0, THEME_ERROR, "", msg);
|
||||
}
|
||||
|
||||
void
|
||||
ui_current_error_line(const char * const msg)
|
||||
{
|
||||
|
@ -106,6 +106,7 @@ ProfChatWin *ui_get_current_chat(void);
|
||||
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_error_line(const char * const msg);
|
||||
void ui_win_error_line(ProfWin *window, const char * const msg);
|
||||
|
||||
win_type_t ui_win_type(int index);
|
||||
void ui_close_win(int index);
|
||||
|
@ -171,6 +171,8 @@ 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_win_error_line(ProfWin *window, const char * const msg) {}
|
||||
|
||||
|
||||
win_type_t ui_win_type(int index)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user