summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomas Bzatek <tbzatek@users.sourceforge.net>2015-01-11 15:21:48 +0100
committerTomas Bzatek <tbzatek@users.sourceforge.net>2015-01-11 16:37:40 +0100
commitee8556560be3e211f2f9db29803dea9d991ac2a0 (patch)
tree24550bc0b0d711d6145a02c336cff59b7581389a
parent248a9af6ad668b6f09f79dda548721756fe11d79 (diff)
downloadcataract-ee8556560be3e211f2f9db29803dea9d991ac2a0.tar.xz
theming: Remove invalid <picture> theme validation check
As per rules defined in the sample default.xml setup file the whole <picture> theme definiton block is not mandatory anymore. The rest of the code plays nicely already.
-rw-r--r--src/setup.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/setup.c b/src/setup.c
index 5cfc255..46a513f 100644
--- a/src/setup.c
+++ b/src/setup.c
@@ -470,11 +470,7 @@ validate_design_setup (TGallerySetup *setup)
fprintf (stderr, "design validation error: theme-defined image size '%s' not found\n", theme->album_image_size);
return FALSE;
}
- if (theme->picture_image_size == NULL || strlen (theme->picture_image_size) == 0) {
- fprintf (stderr, "design validation error: theme does not define mandatory picture size argument\n");
- return FALSE;
- }
- if (lookup_image_size_for_name (setup, theme->picture_image_size) == NULL) {
+ if (theme->picture_image_size && lookup_image_size_for_name (setup, theme->picture_image_size) == NULL) {
fprintf (stderr, "design validation error: theme-defined image size '%s' not found\n", theme->picture_image_size);
return FALSE;
}