[Xfce4-commits] <thunar:master> Load GLoadableIcons at the right scale.

Nick Schermer noreply at xfce.org
Tue Oct 30 22:06:10 CET 2012


Updating branch refs/heads/master
         to fbf1a04ea185bda503a85e1c03e4dc4dfd97bc90 (commit)
       from 1ac786f81c2c843468d4a64f3572f6327d7fedb7 (commit)

commit fbf1a04ea185bda503a85e1c03e4dc4dfd97bc90
Author: Nick Schermer <nick at xfce.org>
Date:   Tue Oct 30 20:50:46 2012 +0100

    Load GLoadableIcons at the right scale.

 thunar/thunar-icon-factory.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/thunar/thunar-icon-factory.c b/thunar/thunar-icon-factory.c
index eab6cf4..87a241b 100644
--- a/thunar/thunar-icon-factory.c
+++ b/thunar/thunar-icon-factory.c
@@ -826,7 +826,9 @@ thunar_icon_factory_load_file_icon (ThunarIconFactory  *factory,
               if (stream != NULL)
                 {
                   /* load the pixbuf from the stream */
-                  icon = gdk_pixbuf_new_from_stream (stream, NULL, NULL);
+                  icon = gdk_pixbuf_new_from_stream_at_scale (stream, icon_size,
+                                                              icon_size, TRUE,
+                                                              NULL, NULL);
 
                   /* destroy the stream */
                   g_object_unref (stream);


More information about the Xfce4-commits mailing list