[Xfce4-commits] <xfdesktop:master> Scale up small image previews in xfdesktop-settings (Bug 10690)
Eric Koegel
noreply at xfce.org
Sun Feb 16 15:28:01 CET 2014
Updating branch refs/heads/master
to e0f355e0f031b9ab2cc19cb7a32fbc6a4722e8cd (commit)
from 9a7ea5a209faa3fd43ae9bc85a86491207897af3 (commit)
commit e0f355e0f031b9ab2cc19cb7a32fbc6a4722e8cd
Author: Eric Koegel <eric.koegel at gmail.com>
Date: Sun Feb 16 17:22:15 2014 +0300
Scale up small image previews in xfdesktop-settings (Bug 10690)
While it looks worse with small images, scaling up the previews
makes icon selections more accessible when using the mouse.
settings/main.c | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/settings/main.c b/settings/main.c
index 41e4d5c..9170ef0 100644
--- a/settings/main.c
+++ b/settings/main.c
@@ -181,13 +181,13 @@ xfdesktop_settings_do_single_preview(GtkTreeModel *model,
/* If we didn't create a thumbnail there might not be a thumbnailer service
* or it may not support that format */
if(thumbnail == NULL) {
- pix = exo_gdk_pixbuf_new_from_file_at_max_size(filename,
- PREVIEW_WIDTH, PREVIEW_HEIGHT,
- TRUE, NULL);
+ pix = gdk_pixbuf_new_from_file_at_scale(filename,
+ PREVIEW_WIDTH, PREVIEW_HEIGHT,
+ TRUE, NULL);
} else {
- pix = exo_gdk_pixbuf_new_from_file_at_max_size(thumbnail,
- PREVIEW_WIDTH, PREVIEW_HEIGHT,
- TRUE, NULL);
+ pix = gdk_pixbuf_new_from_file_at_scale(thumbnail,
+ PREVIEW_WIDTH, PREVIEW_HEIGHT,
+ TRUE, NULL);
g_free(thumbnail);
}
More information about the Xfce4-commits
mailing list