Fix error printing when parsing and save the last error.
authorDana Jansens <danakj@orodu.net>
Sat, 15 Oct 2011 19:11:56 +0000 (15:11 -0400)
committerDana Jansens <danakj@orodu.net>
Sun, 16 Oct 2011 22:58:03 +0000 (18:58 -0400)
commit0628c049697a948b31c30e215378da8fe45a86f6
treee9348d7700430cad1a9c52efe9d12d2ffefb10ed
parent572253f67cde087b1552bc1ca1324999785bd15f
Fix error printing when parsing and save the last error.

Errors would have a line number relative to the string of text being parsed,
but if this is in a larger file, then it's useless. So add a callback that
can modify the line number for parsing things nested in a larger document.

This gives proper errors for parsing actions in the xml config files.

Also, change how errors are given back when creating a new action. Instead of
printing it directly, return an error string so the parser can show what line
the invalid action was found on.
openbox/action.c
openbox/action.h
openbox/action_parser.c
openbox/action_parser.h
openbox/actions/cyclewindows.c
openbox/actions/directionalwindows.c
openbox/config.c
openbox/menu.c
openbox/openbox.c