mirror of
https://github.com/profanity-im/profanity.git
synced 2024-12-04 14:46:46 -05:00
Moved previous win function
This commit is contained in:
parent
bb3f1b0909
commit
bd03bbad73
@ -748,6 +748,28 @@ _ui_switch_win(const int i)
|
||||
}
|
||||
}
|
||||
|
||||
static void
|
||||
_ui_previous_win(void)
|
||||
{
|
||||
ProfWin *new_current = wins_get_previous();
|
||||
int i = wins_get_num(new_current);
|
||||
wins_set_current_by_num(i);
|
||||
|
||||
new_current->unread = 0;
|
||||
|
||||
if (i == 1) {
|
||||
title_bar_console();
|
||||
status_bar_current(1);
|
||||
status_bar_active(1);
|
||||
} else {
|
||||
GString *recipient_str = _get_recipient_string(new_current);
|
||||
title_bar_set_recipient(recipient_str->str);
|
||||
g_string_free(recipient_str, TRUE);
|
||||
status_bar_current(i);
|
||||
status_bar_active(i);
|
||||
}
|
||||
}
|
||||
|
||||
static void
|
||||
_ui_next_win(void)
|
||||
{
|
||||
@ -944,28 +966,6 @@ _ui_untrust(const char * const recipient)
|
||||
}
|
||||
}
|
||||
|
||||
static void
|
||||
_ui_previous_win(void)
|
||||
{
|
||||
ProfWin *new_current = wins_get_previous();
|
||||
int i = wins_get_num(new_current);
|
||||
wins_set_current_by_num(i);
|
||||
|
||||
new_current->unread = 0;
|
||||
|
||||
if (i == 1) {
|
||||
title_bar_console();
|
||||
status_bar_current(1);
|
||||
status_bar_active(1);
|
||||
} else {
|
||||
GString *recipient_str = _get_recipient_string(new_current);
|
||||
title_bar_set_recipient(recipient_str->str);
|
||||
g_string_free(recipient_str, TRUE);
|
||||
status_bar_current(i);
|
||||
status_bar_active(i);
|
||||
}
|
||||
}
|
||||
|
||||
static void
|
||||
_ui_clear_current(void)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user