From 571790ba31a48c108e42c4ae10f8e63ae734c376 Mon Sep 17 00:00:00 2001 From: Tomas Bzatek Date: Sun, 30 Dec 2012 20:33:58 +0100 Subject: setup: Introduce location section and reorganize More and more we need to know local and public locations for various features. Let's introduce general keys once and for all. --- src/setup.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/setup.c') diff --git a/src/setup.c b/src/setup.c index f053555..c78b15f 100644 --- a/src/setup.c +++ b/src/setup.c @@ -122,7 +122,10 @@ parse_setup_xml (const gchar *filename) setup->feed_enabled = xml_file_get_node_attribute_boolean (xml, "/gallery_setup/feed", "enable", FALSE); setup->feed_filename = xml_file_get_node_value (xml, "/gallery_setup/feed/filename/text()"); setup->feed_title = xml_file_get_node_value (xml, "/gallery_setup/feed/title/text()"); - setup->feed_base_url = xml_file_get_node_value (xml, "/gallery_setup/feed/base_url/text()"); + + /* location section */ + setup->location_base_url = xml_file_get_node_value (xml, "/gallery_setup/location/base_url/text()"); + setup->location_local_path = xml_file_get_node_value (xml, "/gallery_setup/location/local_path/text()"); /* footer section */ setup->footer = xml_file_get_node_value (xml, "/gallery_setup/footer/text()"); @@ -379,7 +382,8 @@ free_setup_data (TGallerySetup *setup) g_free (setup->favicon_type); g_free (setup->feed_filename); g_free (setup->feed_title); - g_free (setup->feed_base_url); + g_free (setup->location_base_url); + g_free (setup->location_local_path); g_free (setup->footer); free_design_setup_data (setup->design); g_free (setup); -- cgit v1.2.3