diff options
author | Gaël Bonithon <gael@xfce.org> | 2021-12-29 16:08:18 +0100 |
---|---|---|
committer | Gaël Bonithon <gael@xfce.org> | 2021-12-29 16:09:59 +0100 |
commit | 5affdb5ccdba711ada11f4cde7d7acc840b5a4be (patch) | |
tree | 3850b0aa94e1d3ee577d08f2f6096c1d21acc92e /tumbler | |
parent | 7fdab65f7a2144a7cae4d49bea13cea3644dfc3c (diff) | |
download | tumbler-5affdb5ccdba711ada11f4cde7d7acc840b5a4be.tar.gz |
Add support for thumbnail size x-large and xx-large
Closes #51.
Diffstat (limited to 'tumbler')
-rw-r--r-- | tumbler/tumbler-thumbnail-flavor.c | 18 | ||||
-rw-r--r-- | tumbler/tumbler-thumbnail-flavor.h | 2 |
2 files changed, 20 insertions, 0 deletions
diff --git a/tumbler/tumbler-thumbnail-flavor.c b/tumbler/tumbler-thumbnail-flavor.c index 0d09dad..7f1594a 100644 --- a/tumbler/tumbler-thumbnail-flavor.c +++ b/tumbler/tumbler-thumbnail-flavor.c @@ -216,6 +216,24 @@ tumbler_thumbnail_flavor_new_large (void) +TumblerThumbnailFlavor * +tumbler_thumbnail_flavor_new_x_large (void) +{ + return g_object_new (TUMBLER_TYPE_THUMBNAIL_FLAVOR, "name", "x-large", + "width", 512, "height", 512, NULL); +} + + + +TumblerThumbnailFlavor * +tumbler_thumbnail_flavor_new_xx_large (void) +{ + return g_object_new (TUMBLER_TYPE_THUMBNAIL_FLAVOR, "name", "xx-large", + "width", 1024, "height", 1024, NULL); +} + + + const gchar * tumbler_thumbnail_flavor_get_name (TumblerThumbnailFlavor *flavor) { diff --git a/tumbler/tumbler-thumbnail-flavor.h b/tumbler/tumbler-thumbnail-flavor.h index c5fae97..80d0019 100644 --- a/tumbler/tumbler-thumbnail-flavor.h +++ b/tumbler/tumbler-thumbnail-flavor.h @@ -47,6 +47,8 @@ TumblerThumbnailFlavor *tumbler_thumbnail_flavor_new (const gchar gint height) G_GNUC_MALLOC G_GNUC_WARN_UNUSED_RESULT; TumblerThumbnailFlavor *tumbler_thumbnail_flavor_new_normal (void) G_GNUC_MALLOC G_GNUC_WARN_UNUSED_RESULT; TumblerThumbnailFlavor *tumbler_thumbnail_flavor_new_large (void) G_GNUC_MALLOC G_GNUC_WARN_UNUSED_RESULT; +TumblerThumbnailFlavor *tumbler_thumbnail_flavor_new_x_large (void) G_GNUC_MALLOC G_GNUC_WARN_UNUSED_RESULT; +TumblerThumbnailFlavor *tumbler_thumbnail_flavor_new_xx_large (void) G_GNUC_MALLOC G_GNUC_WARN_UNUSED_RESULT; const gchar *tumbler_thumbnail_flavor_get_name (TumblerThumbnailFlavor *flavor); void tumbler_thumbnail_flavor_get_size (TumblerThumbnailFlavor *flavor, gint *width, |