From 9d50015682975f1f70e22b4814fe7bf200c60679 Mon Sep 17 00:00:00 2001 From: Tomas Bzatek Date: Sun, 28 Dec 2008 19:37:44 +0100 Subject: Preload next image (active by default) --- setup.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'setup.c') diff --git a/setup.c b/setup.c index a266e99..8df399c 100644 --- a/setup.c +++ b/setup.c @@ -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); -- cgit v1.2.3