diff options
| author | Tomas Bzatek <tbzatek@users.sourceforge.net> | 2008-12-28 18:58:17 +0100 |
|---|---|---|
| committer | Tomas Bzatek <tbzatek@users.sourceforge.net> | 2008-12-28 18:58:17 +0100 |
| commit | ad67f341ecec4b56dca28181b570036a1095ded6 (patch) | |
| tree | 72ff370ff1e46902a870a4d22c1db9064c79ec2b /items.c | |
| parent | aa30084b5af8cc8045b031c1714fd17cb57dc43a (diff) | |
| download | cataract-ad67f341ecec4b56dca28181b570036a1095ded6.tar.xz | |
Support for hidden items
Diffstat (limited to 'items.c')
| -rw-r--r-- | items.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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); |
