diff options
Diffstat (limited to 'src/setup.h')
| -rw-r--r-- | src/setup.h | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/src/setup.h b/src/setup.h index 9e8f9dd..64351f3 100644 --- a/src/setup.h +++ b/src/setup.h @@ -35,12 +35,6 @@ G_BEGIN_DECLS /* forward declaration */ typedef struct TGalleryDesign TGalleryDesign; -typedef enum { - THUMBNAIL_SQUARE_TYPE_NONE, - THUMBNAIL_SQUARE_TYPE_SIMPLE -} ThumbnailSquareType; - - /* Global gallery setup */ typedef struct { gboolean verbose; @@ -63,7 +57,6 @@ typedef struct { gboolean strip_xmp; gboolean write_supplied_exif; gboolean nofullsize; - ThumbnailSquareType squared_thumbnail_type; gboolean autorotate; /* meta section */ @@ -96,6 +89,7 @@ typedef struct { typedef struct { gchar *name; + gboolean is_thumbnail; int landscape_width; int landscape_height; int portrait_width; @@ -103,15 +97,18 @@ typedef struct { int square_size; int quality; gboolean no_resize; + gboolean squared_thumb; } TImageSize; typedef struct { gboolean enabled; gchar *index_template; gchar *index_filename; + gchar *index_thumb_size; gchar *album_template; gchar *album_filename; gchar *album_image_size; + gchar *album_thumb_size; gchar *album_protected_thumbnail; gchar *picture_template; gchar *picture_filename; @@ -153,9 +150,14 @@ TGalleryDesign * parse_design_setup_xml (const gchar *filename); TGalleryDesign * makeup_legacy_design (const gchar *filename); /* + * lookup_image_size_for_name: looks up an image size record for given image size name + */ +TImageSize * lookup_image_size_for_name (TGallerySetup *setup, const gchar *name); + +/* * validate_design_setup: validate design.xml file setup */ -gboolean validate_design_setup (TGalleryDesign *design); +gboolean validate_design_setup (TGallerySetup *setup); /* * free_setup_data: free allocated setup data |
