mirror of
https://github.com/profanity-im/profanity.git
synced 2024-12-04 14:46:46 -05:00
Added open xml console
This commit is contained in:
parent
f8b2e009ed
commit
ab4ea80a70
@ -1160,6 +1160,16 @@ _ui_create_xmlconsole_win(void)
|
|||||||
ui_switch_win(num);
|
ui_switch_win(num);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void
|
||||||
|
_ui_open_xmlconsole_win(void)
|
||||||
|
{
|
||||||
|
ProfWin *window = wins_get_by_recipient("XML Console");
|
||||||
|
if (window != NULL) {
|
||||||
|
int num = wins_get_num(window);
|
||||||
|
ui_switch_win(num);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
_ui_open_duck_win(void)
|
_ui_open_duck_win(void)
|
||||||
{
|
{
|
||||||
@ -1991,6 +2001,7 @@ ui_init_module(void)
|
|||||||
ui_handle_stanza = _ui_handle_stanza;
|
ui_handle_stanza = _ui_handle_stanza;
|
||||||
ui_create_xmlconsole_win = _ui_create_xmlconsole_win;
|
ui_create_xmlconsole_win = _ui_create_xmlconsole_win;
|
||||||
ui_xmlconsole_exists = _ui_xmlconsole_exists;
|
ui_xmlconsole_exists = _ui_xmlconsole_exists;
|
||||||
|
ui_open_xmlconsole_win = _ui_open_xmlconsole_win;
|
||||||
ui_handle_room_join_error = _ui_handle_room_join_error;
|
ui_handle_room_join_error = _ui_handle_room_join_error;
|
||||||
ui_swap_wins = _ui_swap_wins;
|
ui_swap_wins = _ui_swap_wins;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user