Added XML Console window

This commit is contained in:
James Booth
2014-04-15 13:16:32 +01:00
parent bf185d9907
commit e6e0a13e89
8 changed files with 100 additions and 11 deletions

View File

@@ -789,6 +789,14 @@ static struct cmd_t command_defs[] =
"The default is 'all' for all windows.",
NULL } } },
{ "/xmlconsole",
cmd_xmlconsole, parse_args, 0, 0, NULL,
{ "/xmlconsole", "Open the XML console",
{ "/xmlconsole",
"-----------",
"Open the XML console to view incoming and outgoing XMPP traffic.",
NULL } } },
{ "/away",
cmd_away, parse_args_with_freetext, 0, 1, NULL,
{ "/away [msg]", "Set status to away.",
@@ -1937,4 +1945,4 @@ _account_autocomplete(char *input, int *size)
found = autocomplete_param_with_ac(input, size, "/account", account_ac);
return found;
}
}

View File

@@ -2443,6 +2443,18 @@ cmd_vercheck(gchar **args, struct cmd_help_t help)
}
}
gboolean
cmd_xmlconsole(gchar **args, struct cmd_help_t help)
{
if (!ui_xmlconsole_exists()) {
ui_create_xmlconsole_win();
} else {
ui_open_xmlconsole_win();
}
return TRUE;
}
gboolean
cmd_flash(gchar **args, struct cmd_help_t help)
{

View File

@@ -110,5 +110,6 @@ gboolean cmd_win(gchar **args, struct cmd_help_t help);
gboolean cmd_wins(gchar **args, struct cmd_help_t help);
gboolean cmd_xa(gchar **args, struct cmd_help_t help);
gboolean cmd_alias(gchar **args, struct cmd_help_t help);
gboolean cmd_xmlconsole(gchar **args, struct cmd_help_t help);
#endif