diff options
author | James Booth <boothj5@gmail.com> | 2014-04-25 00:04:01 +0100 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2014-04-25 00:04:01 +0100 |
commit | ab4ea80a70803d8d6335d8f5a8a4248e6d5423a4 (patch) | |
tree | 55711520657c720974d01f56cb3cc3ced473018d | |
parent | f8b2e009ed1608ea99b6a757944eae956cba86be (diff) | |
download | profani-tty-ab4ea80a70803d8d6335d8f5a8a4248e6d5423a4.tar.gz |
Added open xml console
-rw-r--r-- | src/ui/core.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/ui/core.c b/src/ui/core.c index 383eafef..35865ebb 100644 --- a/src/ui/core.c +++ b/src/ui/core.c @@ -1161,6 +1161,16 @@ _ui_create_xmlconsole_win(void) } 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 _ui_open_duck_win(void) { ProfWin *window = wins_get_by_recipient("DuckDuckGo search"); @@ -1991,6 +2001,7 @@ ui_init_module(void) ui_handle_stanza = _ui_handle_stanza; ui_create_xmlconsole_win = _ui_create_xmlconsole_win; 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_swap_wins = _ui_swap_wins; } |