mirror of
https://github.com/profanity-im/profanity.git
synced 2024-12-04 14:46:46 -05:00
Update input window on /theme set
This commit is contained in:
parent
71a8e3919c
commit
076576178c
@ -114,7 +114,7 @@ prof_run(const int disable_tls, char *log_level, char *account_name)
|
||||
g_timer_start(timer);
|
||||
}
|
||||
|
||||
ui_handle_special_keys(&ch, result, inp, size);
|
||||
ui_handle_special_keys(&ch, result);
|
||||
#ifdef HAVE_LIBOTR
|
||||
otr_poll();
|
||||
#endif
|
||||
|
@ -204,7 +204,7 @@ _ui_input_nonblocking(void)
|
||||
}
|
||||
|
||||
static void
|
||||
_ui_resize(const int ch, const char * const input, const int size)
|
||||
_ui_resize(void)
|
||||
{
|
||||
log_info("Resizing UI");
|
||||
erase();
|
||||
@ -212,7 +212,7 @@ _ui_resize(const int ch, const char * const input, const int size)
|
||||
title_bar_resize();
|
||||
wins_resize_all();
|
||||
status_bar_resize();
|
||||
inp_win_resize(input, size);
|
||||
inp_win_resize();
|
||||
ProfWin *window = wins_get_current();
|
||||
win_update_virtual(window);
|
||||
}
|
||||
@ -223,6 +223,7 @@ _ui_redraw(void)
|
||||
title_bar_resize();
|
||||
wins_resize_all();
|
||||
status_bar_resize();
|
||||
inp_win_resize();
|
||||
}
|
||||
|
||||
static void
|
||||
@ -595,13 +596,12 @@ _ui_disconnected(void)
|
||||
}
|
||||
|
||||
static void
|
||||
_ui_handle_special_keys(const wint_t * const ch, const int result, const char * const inp,
|
||||
const int size)
|
||||
_ui_handle_special_keys(const wint_t * const ch, const int result)
|
||||
{
|
||||
_win_handle_switch(ch);
|
||||
_win_handle_page(ch, result);
|
||||
if (*ch == KEY_RESIZE) {
|
||||
ui_resize(*ch, inp, size);
|
||||
ui_resize();
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -90,7 +90,7 @@ create_input_window(void)
|
||||
}
|
||||
|
||||
void
|
||||
inp_win_resize(const char * const input, const int size)
|
||||
inp_win_resize(void)
|
||||
{
|
||||
int inp_x;
|
||||
getmaxyx(stdscr, rows, cols);
|
||||
@ -104,6 +104,7 @@ inp_win_resize(const char * const input, const int size)
|
||||
}
|
||||
}
|
||||
|
||||
wbkgd(inp_win, theme_attrs(THEME_INPUT_TEXT));;
|
||||
_inp_win_update_virtual();
|
||||
}
|
||||
|
||||
|
@ -38,7 +38,7 @@
|
||||
void create_input_window(void);
|
||||
wint_t inp_get_char(char *input, int *size, int *result);
|
||||
void inp_win_reset(void);
|
||||
void inp_win_resize(const char * input, const int size);
|
||||
void inp_win_resize(void);
|
||||
void inp_put_back(void);
|
||||
void inp_non_block(void);
|
||||
void inp_block(void);
|
||||
|
@ -63,11 +63,9 @@ void (*ui_load_colours)(void);
|
||||
void (*ui_update)(void);
|
||||
void (*ui_close)(void);
|
||||
void (*ui_redraw)(void);
|
||||
void (*ui_resize)(const int ch, const char * const input,
|
||||
const int size);
|
||||
void (*ui_resize)(void);
|
||||
GSList* (*ui_get_recipients)(void);
|
||||
void (*ui_handle_special_keys)(const wint_t * const ch, const int result, const char * const inp,
|
||||
const int size);
|
||||
void (*ui_handle_special_keys)(const wint_t * const ch, const int result);
|
||||
gboolean (*ui_switch_win)(const int i);
|
||||
void (*ui_next_win)(void);
|
||||
void (*ui_previous_win)(void);
|
||||
|
Loading…
Reference in New Issue
Block a user