[gnome-desktop] Increase the size of thumbnails to 256
- From: William Jon McCann <mccann src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-desktop] Increase the size of thumbnails to 256
- Date: Wed, 15 Aug 2012 17:48:05 +0000 (UTC)
commit c5872652bda37f94e288bf409b2fc4f75a30876e
Author: William Jon McCann <jmccann redhat com>
Date: Fri Aug 10 14:49:09 2012 -0400
Increase the size of thumbnails to 256
https://bugzilla.gnome.org/show_bug.cgi?id=681929
libgnome-desktop/gnome-bg.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/libgnome-desktop/gnome-bg.c b/libgnome-desktop/gnome-bg.c
index 1b4ce9e..6e20903 100644
--- a/libgnome-desktop/gnome-bg.c
+++ b/libgnome-desktop/gnome-bg.c
@@ -84,6 +84,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
@@ -3019,7 +3020,7 @@ create_thumbnail_for_filename (GnomeDesktopThumbnailFactory *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), "gnome-thumbnail-height",
g_strdup_printf ("%d", orig_height), g_free);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]