From b25da97d5cae29861bfc9317fd9c66afb09a5405 Mon Sep 17 00:00:00 2001 From: William Jon McCann Date: Fri, 10 Aug 2012 14:49:09 -0400 Subject: Increase the size of thumbnails to 256 origin commit: https://gitlab.gnome.org/GNOME/gnome-desktop/commit/c587265 --- libmate-desktop/mate-bg.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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); -- cgit v1.2.1