[f-spot: 20/40] make some sense out of ShowProgress
- From: Stephane Delcroix <sdelcroix src gnome org>
- To: svn-commits-list gnome org
- Subject: [f-spot: 20/40] make some sense out of ShowProgress
- Date: Wed, 24 Jun 2009 09:49:23 +0000 (UTC)
commit ee682f057bc2852bea7f6146c2b775e8d9eaf54b
Author: Stephane Delcroix <stephane delcroix org>
Date: Mon Jun 22 10:09:32 2009 +0200
make some sense out of ShowProgress
De Morgan rules to the rescue
src/PhotoImageView.cs | 9 ++++-----
1 files changed, 4 insertions(+), 5 deletions(-)
---
diff --git a/src/PhotoImageView.cs b/src/PhotoImageView.cs
index bb1135a..65dac7d 100644
--- a/src/PhotoImageView.cs
+++ b/src/PhotoImageView.cs
@@ -298,23 +298,22 @@ namespace FSpot.Widgets {
}
bool ShowProgress {
- get { return !(load_async != ProgressType.Full || !progressive_display); }
+ get { return load_async == ProgressType.Full && progressive_display; }
}
void LoadErrorImage (System.Exception e)
{
// FIXME we should check the exception type and do something
// like offer the user a chance to locate the moved file and
- // update the db entry, but for now just set the error pixbuf
-
+ // update the db entry, but for now just set the error pixbuf
Pixbuf old = Pixbuf;
Pixbuf = new Pixbuf (PixbufUtils.ErrorPixbuf, 0, 0,
PixbufUtils.ErrorPixbuf.Width,
PixbufUtils.ErrorPixbuf.Height);
- PixbufOrientation = PixbufOrientation.TopLeft;
if (old != null)
old.Dispose ();
-
+
+ PixbufOrientation = PixbufOrientation.TopLeft;
ZoomFit ();
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]