diff options
| author | Tomas Bzatek <tbzatek@users.sourceforge.net> | 2008-08-10 17:21:59 +0200 |
|---|---|---|
| committer | Tomas Bzatek <tbzatek@users.sourceforge.net> | 2008-08-10 17:21:59 +0200 |
| commit | d37bcc1685bf3e9c1583959ef3e96f59beb055d0 (patch) | |
| tree | 925c5769269473e6a031f2ecd324aa6af1c712a0 /items.c | |
| parent | e291c5c25b81c9e944523227ea55f7f96e2472ca (diff) | |
| download | cataract-d37bcc1685bf3e9c1583959ef3e96f59beb055d0.tar.xz | |
Support for footnotes
Diffstat (limited to 'items.c')
| -rw-r--r-- | items.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -73,6 +73,7 @@ parse_album_xml (const char *filename, TAlbum *index) index->ID = xml_file_get_node_value (xml, "/gallery/general/ID/text()"); index->title = xml_file_get_node_value (xml, "/gallery/general/title/text()"); index->desc = xml_file_get_node_value (xml, "/gallery/general/description/text()"); + index->footnote = xml_file_get_node_value (xml, "/gallery/general/footnote/text()"); index->quality = xml_file_get_node_attribute_long (xml, "/gallery/general/images", "quality", -1); index->landscape_width = xml_file_get_node_attribute_long (xml, "/gallery/general/images", "landscape_w", 0); @@ -162,6 +163,8 @@ free_album_data (TAlbum *album) free (album->title); if (album->desc) free (album->desc); + if (album->footnote) + free (album->footnote); if (album->base_dir) free (album->base_dir); if (album->border_style) |
