From ee8556560be3e211f2f9db29803dea9d991ac2a0 Mon Sep 17 00:00:00 2001 From: Tomas Bzatek Date: Sun, 11 Jan 2015 15:21:48 +0100 Subject: theming: Remove invalid theme validation check As per rules defined in the sample default.xml setup file the whole theme definiton block is not mandatory anymore. The rest of the code plays nicely already. --- src/setup.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src') 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; } -- cgit v1.2.3