From ab4ea80a70803d8d6335d8f5a8a4248e6d5423a4 Mon Sep 17 00:00:00 2001 From: James Booth Date: Fri, 25 Apr 2014 00:04:01 +0100 Subject: [PATCH] Added open xml console --- src/ui/core.c | 11 +++++++++++ 1 file changed, 11 insertions(+) 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 @@ -1160,6 +1160,16 @@ _ui_create_xmlconsole_win(void) 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 _ui_open_duck_win(void) { @@ -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; }