From e420e9f3fbd5e758e4a1489766f74030a1b77b88 Mon Sep 17 00:00:00 2001 From: Tomas Bzatek Date: Tue, 30 Dec 2008 16:21:41 +0100 Subject: Optional fallback to IPTC/EXIF captions and comments --- setup.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'setup.c') diff --git a/setup.c b/setup.c index 5ad4bb3..42846b5 100644 --- a/setup.c +++ b/setup.c @@ -116,6 +116,9 @@ parse_setup_xml (const char *filename, TGallerySetup *setup) s = xml_file_get_node_attribute (xml, "/gallery_setup/images/preload", "value"); setup->preload = s ? strcasecmp (s, "yes") == 0 : TRUE; /* default to TRUE */ if (s) g_free (s); + s = xml_file_get_node_attribute (xml, "/gallery_setup/images/use_iptc_exif", "value"); + setup->use_iptc_exif = s ? strcasecmp (s, "yes") == 0 : FALSE; /* default to FALSE */ + if (s) g_free (s); xml_parser_close (xml); @@ -141,6 +144,8 @@ parse_setup_xml (const char *filename, TGallerySetup *setup) printf("setup: meta_author = '%s'\n", setup->meta_author); printf("setup: meta_description = '%s'\n", setup->meta_description); printf("setup: meta_keywords = '%s'\n", setup->meta_keywords); + printf("setup: preload = %d\n", setup->preload); + printf("setup: use_iptc_exif = %d\n", setup->use_iptc_exif); #endif return TRUE; -- cgit v1.2.3