Commit graph

10 commits

Author SHA1 Message Date
Mikael Magnusson
122e2a81d3 Some fixes found by coverity for things used before a null check
In the second case, we actually check the wrong variable.
2014-10-28 05:42:28 +01:00
Dana Jansens
4e6c0086a6 Add support for loading SVG icons using librsvg.
This adds a configure option --disable-librsvg, but defaults to
using the library if it is present during configure.

When enabled, Openbox will attempt to load svg image files using
the library, similar to how Imlib2 is used for other image
formats.

Since librsvg uses the libXml2 library, their errors end up in
the same global namespace as Openbox config file parsing. To
avoid this, we reset the libXml current error whenever we start
loading a file, and save the last error that occurred when we
are finished, by storing the error in the ObtXmlInst.
2013-08-10 21:59:12 -04:00
Dana Jansens
dff5276482 Don't strip leading whitespace from menu labels (Fix bug 4782) 2012-09-30 15:53:35 -04:00
Dana Jansens
d58ed5c413 Allow an xml tag to be unregistered from the xml parser. 2012-09-30 14:57:41 -04:00
Dana Jansens
80b6d4ac5d XML_PARSE_XINCLUDE flag seems to do nothing. Use xmlXIncludeProcessFlags() instead 2011-01-24 14:19:23 -05:00
Dana Jansens
4f8503c2c5 Allow XIncludes in xml documents we read.
Add the XInclude namespace in the default config file (named "xi")
2011-01-24 14:19:22 -05:00
Dana Jansens
890e13b919 use g_slice_new() instead of g_new() part 3 2010-02-12 14:03:24 -05:00
Mikael Magnusson
aa5394cad2 Check node->name for null
Seems to happen sometimes with a well placed xml comment.
2010-02-12 05:07:44 +01:00
Dana Jansens
7cf9f174db reflect the change that parse.c/h was renamed to xml.c/h in the file header comments 2009-12-28 12:24:08 -06:00
Dana Jansens
b06b684589 rename the obt_parse library to obt_xml (since it is very xml specific) 2009-12-21 14:08:38 -05:00
Renamed from obt/parse.c (Browse further)