diff options
| author | Tomas Bzatek <tbzatek@users.sourceforge.net> | 2009-03-07 21:46:27 +0100 |
|---|---|---|
| committer | Tomas Bzatek <tbzatek@users.sourceforge.net> | 2009-03-07 21:46:27 +0100 |
| commit | 0f3fcf7c383271a3762b52e38309bc18fca49aec (patch) | |
| tree | 50587cfd0f39fa932cadb4d6703d847c2220224c /src/setup.c | |
| parent | 895513e06150927cf5db6600ca164bdae15d4d75 (diff) | |
| download | cataract-0f3fcf7c383271a3762b52e38309bc18fca49aec.tar.xz | |
Favicon support
Diffstat (limited to 'src/setup.c')
| -rw-r--r-- | src/setup.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/setup.c b/src/setup.c index 1481be6..31bd5ca 100644 --- a/src/setup.c +++ b/src/setup.c @@ -131,6 +131,9 @@ parse_setup_xml (const char *filename, TGallerySetup *setup) setup->nofullsize = xml_file_get_node_present (xml, "/gallery_setup/images/nofullsize"); + 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"); + xml_parser_close (xml); #ifdef __DEBUG_ALL__ @@ -256,6 +259,10 @@ free_setup_data (TGallerySetup *setup) free (setup->site_title); if (setup->add_copyright) free (setup->add_copyright); + if (setup->favicon_file) + free (setup->favicon_file); + if (setup->favicon_type) + free (setup->favicon_type); free (setup); setup = NULL; } |
