summaryrefslogtreecommitdiff
path: root/src/items.c
diff options
context:
space:
mode:
authorTomas Bzatek <tbzatek@users.sourceforge.net>2009-04-11 16:39:33 +0200
committerTomas Bzatek <tbzatek@users.sourceforge.net>2009-04-11 16:39:33 +0200
commit498e7aaa9e657ef3ff0406964d62166e37e0299f (patch)
treee2f429864abe12ee870f7fca50423404d9aa5fb2 /src/items.c
parent9c2c964727e4a484acf7f97267a3cf1c8fbacd89 (diff)
downloadcataract-498e7aaa9e657ef3ff0406964d62166e37e0299f.tar.xz
Support for interspaces
Diffstat (limited to 'src/items.c')
-rw-r--r--src/items.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/items.c b/src/items.c
index 2b9a1ad..27034f2 100644
--- a/src/items.c
+++ b/src/items.c
@@ -197,6 +197,16 @@ parse_album_xml (const char *filename, TAlbum *index)
g_ptr_array_add (index->items, item);
}
+ else
+ if (strcmp (node_name, "interspace") == 0) {
+ item->type = INDEX_ITEM_TYPE_INTERSPACE;
+
+ s = g_strdup_printf ("/gallery/items/*[%d]/text()", i + 1);
+ item->title = xml_file_get_node_value (xml, s);
+ g_free (s);
+
+ g_ptr_array_add (index->items, item);
+ }
else {
/* Free the item if nobody cares */
free (item);