summaryrefslogtreecommitdiff
path: root/items.c
diff options
context:
space:
mode:
authorTomas Bzatek <tbzatek@users.sourceforge.net>2008-12-28 18:58:17 +0100
committerTomas Bzatek <tbzatek@users.sourceforge.net>2008-12-28 18:58:17 +0100
commitad67f341ecec4b56dca28181b570036a1095ded6 (patch)
tree72ff370ff1e46902a870a4d22c1db9064c79ec2b /items.c
parentaa30084b5af8cc8045b031c1714fd17cb57dc43a (diff)
downloadcataract-ad67f341ecec4b56dca28181b570036a1095ded6.tar.xz
Support for hidden items
Diffstat (limited to 'items.c')
-rw-r--r--items.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/items.c b/items.c
index 2af0692..cf2d90f 100644
--- a/items.c
+++ b/items.c
@@ -136,6 +136,10 @@ parse_album_xml (const char *filename, TAlbum *index)
item->nofullsize = (xml_file_get_node_present (xml, s) || item->path == NULL);
g_free (s);
+ s = g_strdup_printf ("/gallery/items/*[%d]/hidden", i + 1);
+ item->hidden = (xml_file_get_node_present (xml, s));
+ g_free (s);
+
if (item->path || item->preview)
{
g_ptr_array_add (index->items, item);