summaryrefslogtreecommitdiff
path: root/src/items.c
diff options
context:
space:
mode:
authorTomas Bzatek <tbzatek@users.sourceforge.net>2011-01-23 18:41:25 +0100
committerTomas Bzatek <tbzatek@users.sourceforge.net>2011-01-23 18:41:25 +0100
commitede4432dab952314a57c94d8e713814e651f83ca (patch)
tree97faf17bec0e041cf19d7ec27b41fb8b7c2f4ab0 /src/items.c
parent49abd46d162e1d5013a42947c200544b75ab9da1 (diff)
downloadcataract-ede4432dab952314a57c94d8e713814e651f83ca.tar.xz
Indentation fixes
Diffstat (limited to 'src/items.c')
-rw-r--r--src/items.c21
1 files changed, 8 insertions, 13 deletions
diff --git a/src/items.c b/src/items.c
index faedead..5fc1963 100644
--- a/src/items.c
+++ b/src/items.c
@@ -164,15 +164,13 @@ parse_album_xml (const gchar *filename)
atom_feed_item_set_path (feed_item, s);
g_free (s);
}
-
}
/* Section Items */
count = xml_file_node_get_children_count (xml, "/gallery/items/*");
- index->items = g_ptr_array_new();
+ index->items = g_ptr_array_new ();
- for (i = 0; i < count; i++)
- {
+ for (i = 0; i < count; i++) {
s = g_strdup_printf ("/gallery/items/*[%d]", i + 1);
node_name = xml_file_get_node_name (xml, s);
g_free (s);
@@ -244,15 +242,12 @@ parse_album_xml (const gchar *filename)
g_free (s);
}
- if (item->path || item->preview)
- {
- g_ptr_array_add (index->items, item);
- }
- else
- {
- log_error ("%s: No image src specified, skipping!\n", filename);
- free_album_item (item);
- }
+ if (item->path || item->preview) {
+ g_ptr_array_add (index->items, item);
+ } else {
+ log_error ("%s: No image src specified, skipping!\n", filename);
+ free_album_item (item);
+ }
}
else
if (strcmp (node_name, "separator") == 0) {