From 29381f9e70d122ea4d89d71ea97f42253c528211 Mon Sep 17 00:00:00 2001 From: Tomas Bzatek Date: Sun, 7 May 2017 15:21:39 +0200 Subject: jpeg-utils: Allow custom datetime format The default locale datetime format string may not suit everyone, this adds possibility to specify custom format. The format string should be syntactically conforming to strftime(3). --- src/setup.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/setup.c') diff --git a/src/setup.c b/src/setup.c index cf23044..85c7326 100644 --- a/src/setup.c +++ b/src/setup.c @@ -113,6 +113,7 @@ parse_setup_xml (const gchar *filename) setup->site_title = xml_file_get_node_attribute (xml, "/gallery_setup/meta/site", "title"); setup->add_copyright = xml_file_get_node_value (xml, "/gallery_setup/meta/add_copyright/text()"); setup->meta_artist_name = xml_file_get_node_value (xml, "/gallery_setup/meta/artist_name/text()"); + setup->datetime_format = xml_file_get_node_attribute (xml, "/gallery_setup/meta/datetime", "format"); setup->favicon_file = xml_file_get_node_value (xml, "/gallery_setup/meta/favicon/text()"); setup->favicon_type = xml_file_get_node_attribute (xml, "/gallery_setup/meta/favicon", "type"); @@ -685,6 +686,7 @@ free_setup_data (TGallerySetup *setup) g_free (setup->site_title); g_free (setup->add_copyright); g_free (setup->meta_artist_name); + g_free (setup->datetime_format); g_free (setup->favicon_file); g_free (setup->favicon_type); g_free (setup->feed_filename); -- cgit v1.2.3