diff options
| author | Tomas Bzatek <tbzatek@users.sourceforge.net> | 2008-12-28 19:37:44 +0100 |
|---|---|---|
| committer | Tomas Bzatek <tbzatek@users.sourceforge.net> | 2008-12-28 19:37:44 +0100 |
| commit | 9d50015682975f1f70e22b4814fe7bf200c60679 (patch) | |
| tree | ff02bb06fbeeb0e4945d6b42a01edbbfd73326b2 /setup.c | |
| parent | ad67f341ecec4b56dca28181b570036a1095ded6 (diff) | |
| download | cataract-9d50015682975f1f70e22b4814fe7bf200c60679.tar.xz | |
Preload next image
(active by default)
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); |
