diff options
| author | Tomas Bzatek <tbzatek@users.sourceforge.net> | 2015-01-25 18:23:03 +0100 |
|---|---|---|
| committer | Tomas Bzatek <tbzatek@users.sourceforge.net> | 2015-01-25 18:23:03 +0100 |
| commit | 6fffe1a21d5acaa544f7796241e13ff37e75349f (patch) | |
| tree | 83e0cf3237f11742a89fbc925ac327595b930068 /src/setup.h | |
| parent | 7779510229bb478f591cc67c0cb0e2fbb84fdb98 (diff) | |
| download | cataract-6fffe1a21d5acaa544f7796241e13ff37e75349f.tar.xz | |
theming: Make custom image size handling fully flexible
This commit brings full flexibility of custom image size definition and
usage. When a custom image size is defined, it automatically maps to the
album <item> tag arguments. Alternatively, this automatic name matching
can be overriden by <size tagname="..."> theme setup tags.
This allows us to supply image of different sizes that can be also used
in templates.
Legacy behaviour of "fullsize" and "preview" image size fallback is
retained (though not recommended in new theming setups).
Diffstat (limited to 'src/setup.h')
| -rw-r--r-- | src/setup.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/setup.h b/src/setup.h index f49eb9a..d772360 100644 --- a/src/setup.h +++ b/src/setup.h @@ -94,6 +94,7 @@ typedef enum { typedef struct { gchar *name; + gchar *tagname; gboolean is_thumbnail; int landscape_width; int landscape_height; |
