summaryrefslogtreecommitdiff
path: root/setup.c
diff options
context:
space:
mode:
authorTomas Bzatek <tbzatek@users.sourceforge.net>2008-12-28 19:37:44 +0100
committerTomas Bzatek <tbzatek@users.sourceforge.net>2008-12-28 19:37:44 +0100
commit9d50015682975f1f70e22b4814fe7bf200c60679 (patch)
treeff02bb06fbeeb0e4945d6b42a01edbbfd73326b2 /setup.c
parentad67f341ecec4b56dca28181b570036a1095ded6 (diff)
downloadcataract-9d50015682975f1f70e22b4814fe7bf200c60679.tar.xz
Preload next image
(active by default)
Diffstat (limited to 'setup.c')
-rw-r--r--setup.c3
1 files changed, 3 insertions, 0 deletions
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);