diff options
Diffstat (limited to 'setup.c')
| -rw-r--r-- | setup.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -80,6 +80,7 @@ gboolean parse_setup_xml (const char *filename, TGallerySetup *setup) { TXMLFile *xml; + char *s; xml = xml_parser_load (filename); if (xml == NULL) @@ -112,6 +113,8 @@ parse_setup_xml (const char *filename, TGallerySetup *setup) setup->meta_author = xml_file_get_node_value (xml, "/gallery_setup/meta/author/text()"); setup->meta_description = xml_file_get_node_value (xml, "/gallery_setup/meta/description/text()"); setup->meta_keywords = xml_file_get_node_value (xml, "/gallery_setup/meta/keywords/text()"); + s = xml_file_get_node_attribute (xml, "/gallery_setup/images/preload", "value"); + setup->preload = s ? strcasecmp (s, "yes") == 0 : TRUE; /* default to TRUE */ xml_parser_close (xml); |
