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

Removed ui_input_nonblocking()

This commit is contained in:
James Booth 2015-11-01 18:56:34 +00:00
parent 8195ab42cb
commit d6e4b74802
8 changed files with 10 additions and 17 deletions

View File

@ -4044,7 +4044,7 @@ cmd_inpblock(ProfWin *window, const char *const command, gchar **args)
if (res) {
cons_show("Input blocking set to %d milliseconds.", intval);
prefs_set_inpblock(intval);
ui_input_nonblocking(FALSE);
inp_nonblocking(FALSE);
} else {
cons_show(err_msg);
free(err_msg);

View File

@ -340,7 +340,7 @@ _init(char *log_level)
p_gpg_init();
#endif
atexit(_shutdown);
ui_input_nonblocking(TRUE);
inp_nonblocking(TRUE);
}
static void

View File

@ -185,12 +185,6 @@ ui_close(void)
endwin();
}
void
ui_input_nonblocking(gboolean reset)
{
inp_nonblocking(reset);
}
void
ui_resize(void)
{

View File

@ -40,7 +40,6 @@
#define INP_WIN_MAX 1000
void create_input_window(void);
void inp_nonblocking(gboolean reset);
void inp_close(void);
void inp_win_resize(void);
void inp_put_back(void);

View File

@ -86,6 +86,7 @@ void chatwin_contact_online(ProfChatWin *chatwin, Resource *resource, GDateTime
void chatwin_contact_offline(ProfChatWin *chatwin, char *resource, char *status);
char* inp_readline(void);
void inp_nonblocking(gboolean reset);
void ui_handle_otr_error(const char *const barejid, const char *const message);
@ -226,7 +227,6 @@ void ui_update_presence(const resource_presence_t resource_presence,
const char *const message, const char *const show);
void ui_statusbar_new(const int win);
void ui_input_nonblocking(gboolean);
void ui_write(char *line, int offset);
void ui_invalid_command_usage(const char *const cmd, void (*setting_func)(void));

View File

@ -921,7 +921,7 @@ win_print(ProfWin *window, const char show_char, int pad_indent, GDateTime *time
buffer_push(window->layout->buffer, show_char, pad_indent, timestamp, flags, theme_item, from, message, NULL);
_win_print(window, show_char, pad_indent, timestamp, flags, theme_item, from, message, NULL);
// TODO: cross-reference.. this should be replaced by a real event-based system
ui_input_nonblocking(TRUE);
inp_nonblocking(TRUE);
g_date_time_unref(timestamp);
}
@ -944,7 +944,7 @@ win_print_with_receipt(ProfWin *window, const char show_char, int pad_indent, GT
buffer_push(window->layout->buffer, show_char, pad_indent, time, flags, theme_item, from, message, receipt);
_win_print(window, show_char, pad_indent, time, flags, theme_item, from, message, receipt);
// TODO: cross-reference.. this should be replaced by a real event-based system
ui_input_nonblocking(TRUE);
inp_nonblocking(TRUE);
g_date_time_unref(time);
}

View File

@ -486,7 +486,7 @@ static int
_unavailable_handler(xmpp_conn_t *const conn,
xmpp_stanza_t *const stanza, void *const userdata)
{
ui_input_nonblocking(TRUE);
inp_nonblocking(TRUE);
const char *jid = xmpp_conn_get_jid(conn);
char *from = xmpp_stanza_get_attribute(stanza, STANZA_ATTR_FROM);
@ -563,7 +563,7 @@ static int
_available_handler(xmpp_conn_t *const conn,
xmpp_stanza_t *const stanza, void *const userdata)
{
ui_input_nonblocking(TRUE);
inp_nonblocking(TRUE);
// handler still fires if error
if (g_strcmp0(xmpp_stanza_get_type(stanza), STANZA_TYPE_ERROR) == 0) {
@ -662,7 +662,7 @@ _send_caps_request(char *node, char *caps_key, char *id, char *from)
static int
_muc_user_handler(xmpp_conn_t *const conn, xmpp_stanza_t *const stanza, void *const userdata)
{
ui_input_nonblocking(TRUE);
inp_nonblocking(TRUE);
char *type = xmpp_stanza_get_attribute(stanza, STANZA_ATTR_TYPE);
char *from = xmpp_stanza_get_attribute(stanza, STANZA_ATTR_FROM);

View File

@ -314,9 +314,9 @@ char* inp_readline(void)
return NULL;
}
void ui_inp_history_append(char *inp) {}
void inp_nonblocking(gboolean reset) {}
void ui_input_nonblocking(gboolean reset) {}
void ui_inp_history_append(char *inp) {}
void ui_invalid_command_usage(const char * const usage, void (*setting_func)(void)) {}