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>
Sat, 15 Oct 2011 19:54:15 +0000 (15:54 -0400)
commit2ef5bb696a06a6af249f00065e6cdd74fde35056
tree5ef0a2b259e66d80a3299352c23bf79138e5f9da
parentbe506155b39f61a8f1cebf396f5ef66809b39a71
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