summaryrefslogtreecommitdiff
path: root/libmate-desktop/mate-bg.c
diff options
context:
space:
mode:
authorWilliam Jon McCann <[email protected]>2012-08-10 14:49:09 -0400
committerraveit65 <[email protected]>2020-01-09 00:06:04 +0100
commitb25da97d5cae29861bfc9317fd9c66afb09a5405 (patch)
tree1266592102e3ca2d44bf40096744eca82f4414ee /libmate-desktop/mate-bg.c
parent5eef3356c5828c72122fb531d2797a4378fd54f0 (diff)
downloadmate-desktop-b25da97d5cae29861bfc9317fd9c66afb09a5405.tar.bz2
mate-desktop-b25da97d5cae29861bfc9317fd9c66afb09a5405.tar.xz
Increase the size of thumbnails to 256
origin commit: https://gitlab.gnome.org/GNOME/gnome-desktop/commit/c587265
Diffstat (limited to 'libmate-desktop/mate-bg.c')
-rw-r--r--libmate-desktop/mate-bg.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libmate-desktop/mate-bg.c b/libmate-desktop/mate-bg.c
index bdc93ee..3ced320 100644
--- a/libmate-desktop/mate-bg.c
+++ b/libmate-desktop/mate-bg.c
@@ -78,6 +78,7 @@ struct _FileSize {
* bad dithering when tiling the gradient
*/
#define GRADIENT_PIXMAP_TILE_SIZE 128
+#define THUMBNAIL_SIZE 256
typedef struct FileCacheEntry FileCacheEntry;
#define CACHE_SIZE 4
@@ -3121,7 +3122,8 @@ create_thumbnail_for_filename (MateDesktopThumbnailFactory *factory,
int orig_width = gdk_pixbuf_get_width (orig);
int orig_height = gdk_pixbuf_get_height (orig);
- result = pixbuf_scale_to_fit (orig, 128, 128);
+ result = pixbuf_scale_to_fit (orig, THUMBNAIL_SIZE, THUMBNAIL_SIZE);
+
g_object_set_data_full (G_OBJECT (result), "mate-thumbnail-height",
g_strdup_printf ("%d", orig_height), g_free);