summaryrefslogtreecommitdiff
path: root/src/setup.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/setup.c')
-rw-r--r--src/setup.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/setup.c b/src/setup.c
index 68c32b5..17d8fda 100644
--- a/src/setup.c
+++ b/src/setup.c
@@ -97,6 +97,9 @@ parse_setup_xml (const char *filename, TGallerySetup *setup)
setup->template_files = g_strsplit (s, "\n", -1);
free (s);
}
+ s = xml_file_get_node_attribute (xml, "/gallery_setup/templates/support_files_use_common_root", "value");
+ setup->support_files_use_common_root = s ? strcasecmp (s, "yes") == 0 : FALSE; /* default to FALSE */
+ if (s) g_free (s);
setup->thumbnail_landscape_width = xml_file_get_node_attribute_long (xml, "/gallery_setup/images/thumbnail", "landscape_w", 0);
setup->thumbnail_landscape_height = xml_file_get_node_attribute_long (xml, "/gallery_setup/images/thumbnail", "landscape_h", 0);