diff options
| author | Tomas Bzatek <tbzatek@users.sourceforge.net> | 2012-12-30 20:33:58 +0100 |
|---|---|---|
| committer | Tomas Bzatek <tbzatek@users.sourceforge.net> | 2012-12-30 20:33:58 +0100 |
| commit | 571790ba31a48c108e42c4ae10f8e63ae734c376 (patch) | |
| tree | 89496b45ad6777abd4eced4b860e6b3ae9df0d60 /src/setup.c | |
| parent | 6dd7e0f9073e366cb7420e8b61eacbc6c05faae5 (diff) | |
| download | cataract-571790ba31a48c108e42c4ae10f8e63ae734c376.tar.xz | |
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.
Diffstat (limited to 'src/setup.c')
| -rw-r--r-- | src/setup.c | 8 |
1 files changed, 6 insertions, 2 deletions
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); |
