[f-spot/rubenv-gsoc-2009: 45/86] Fix orientation of loaded thumbs
- From: Ruben Vermeersch <rubenv src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [f-spot/rubenv-gsoc-2009: 45/86] Fix orientation of loaded thumbs
- Date: Sun, 23 May 2010 12:35:43 +0000 (UTC)
commit 177c09f80b20c13ee732e2deb7034d1fd61d362e
Author: Ruben Vermeersch <ruben savanne be>
Date: Thu Jul 30 14:07:56 2009 +0200
Fix orientation of loaded thumbs
src/Widgets/IconViewCache.cs | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/src/Widgets/IconViewCache.cs b/src/Widgets/IconViewCache.cs
index a9b1bc5..a4bd599 100644
--- a/src/Widgets/IconViewCache.cs
+++ b/src/Widgets/IconViewCache.cs
@@ -7,6 +7,8 @@
* This is free software. See COPYING for details.
*/
+using Gdk;
+
using System;
using System.Collections;
using System.Threading;
@@ -187,7 +189,10 @@ namespace FSpot.Widgets {
try {
using (IImageLoader loader = ImageLoader.Create (entry.Uri)) {
loader.Load (ImageLoaderItem.Thumbnail);
- loaded = loader.Thumbnail;
+ Pixbuf thumb = loader.Thumbnail;
+ loaded = FSpot.Utils.PixbufUtils.TransformOrientation (thumb, loader.ThumbnailOrientation);
+ if (loaded != thumb && thumb != null)
+ thumb.Dispose ();
}
this.Update (entry, loaded);
} catch (GLib.GException){
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]