[f-spot: 11/40] set the orientation on HandleDone too, so if ShowProgress is false, the orientation is updated anywa
- From: Stephane Delcroix <sdelcroix src gnome org>
- To: svn-commits-list gnome org
- Subject: [f-spot: 11/40] set the orientation on HandleDone too, so if ShowProgress is false, the orientation is updated anywa
- Date: Wed, 24 Jun 2009 09:48:37 +0000 (UTC)
commit b4e5bb8367f8aea773584f88cf64fefb6a566071
Author: Stephane Delcroix <stephane delcroix org>
Date: Sat Jun 20 14:42:22 2009 +0200
set the orientation on HandleDone too, so if ShowProgress is false, the orientation is updated anyway
src/PhotoImageView.cs | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/PhotoImageView.cs b/src/PhotoImageView.cs
index fc19f0f..989e109 100644
--- a/src/PhotoImageView.cs
+++ b/src/PhotoImageView.cs
@@ -177,6 +177,8 @@ namespace FSpot.Widgets {
if (Pixbuf != loader.Pixbuf)
Pixbuf = loader.Pixbuf;
+ PixbufOrientation = Accelerometer.GetViewOrientation (loader.PixbufOrientation);
+
if (!loader.Prepared || !ShowProgress) {
this.ZoomFit ();
}
@@ -251,10 +253,9 @@ namespace FSpot.Widgets {
try {
if (Item.IsValid) {
System.Uri uri = Item.Current.DefaultVersionUri;
-Log.Warning ("PhotoImageView: Loader.Load");
ImageLoader loader = new ImageLoader ();
- loader.AreaUpdated += HandlePixbufAreaUpdated;
loader.AreaPrepared += HandlePixbufPrepared;
+ loader.AreaUpdated += HandlePixbufAreaUpdated;
loader.Completed += HandleDone;
loader.Load (uri);
} else
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]