Updating branch refs/heads/master
         to 59ec6358a566fe07a9d1ce9e3b2898b524c9d7b0 (commit)
       from f2846eb766d569c40427df43b1ca8c76ce109f99 (commit)

commit 59ec6358a566fe07a9d1ce9e3b2898b524c9d7b0
Author: Nick Schermer <n...@xfce.org>
Date:   Fri Dec 7 22:33:44 2012 +0100

    Rotate pixbuf loader images (bug #6730).

 plugins/pixbuf-thumbnailer/pixbuf-thumbnailer.c |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/plugins/pixbuf-thumbnailer/pixbuf-thumbnailer.c 
b/plugins/pixbuf-thumbnailer/pixbuf-thumbnailer.c
index 3387878..9c64659 100644
--- a/plugins/pixbuf-thumbnailer/pixbuf-thumbnailer.c
+++ b/plugins/pixbuf-thumbnailer/pixbuf-thumbnailer.c
@@ -144,6 +144,7 @@ pixbuf_thumbnailer_new_from_stream (GInputStream      
*stream,
   GdkPixbufLoader *loader;
   gssize           n_read;
   gboolean         result;
+  GdkPixbuf       *src;
   GdkPixbuf       *pixbuf = NULL;
   guchar           buffer[65536];
 
@@ -186,9 +187,9 @@ pixbuf_thumbnailer_new_from_stream (GInputStream      
*stream,
 
   if (result)
     {
-      pixbuf = gdk_pixbuf_loader_get_pixbuf (loader);
-      if (G_LIKELY (pixbuf != NULL))
-        g_object_ref (pixbuf);
+      src = gdk_pixbuf_loader_get_pixbuf (loader);
+      if (G_LIKELY (src != NULL))
+        pixbuf = gdk_pixbuf_apply_embedded_orientation (src);
     }
 
   g_object_unref (loader);
_______________________________________________
Xfce4-commits mailing list
Xfce4-commits@xfce.org
https://mail.xfce.org/mailman/listinfo/xfce4-commits

Reply via email to