[f-spot/cleanup-backend: 6/8] Replace usage of Photo to IBrowseableItem in PreviewPopup.cs



commit 196676f39d478b59035b95ebdde3ca460e8afe3c
Author: Mike Gemünde <mike gemuende de>
Date:   Tue Jul 6 15:55:26 2010 +0200

    Replace usage of Photo to IBrowseableItem in PreviewPopup.cs

 src/Widgets/PreviewPopup.cs |    7 ++-----
 1 files changed, 2 insertions(+), 5 deletions(-)
---
diff --git a/src/Widgets/PreviewPopup.cs b/src/Widgets/PreviewPopup.cs
index 1fa7b57..dba727b 100644
--- a/src/Widgets/PreviewPopup.cs
+++ b/src/Widgets/PreviewPopup.cs
@@ -26,7 +26,7 @@ namespace FSpot {
 				return show_histogram;
 			}
 			set {
-				if (value != show_histogram)	
+				if (value != show_histogram)
 					item = -1;
 				show_histogram = value;
 			}
@@ -112,10 +112,7 @@ namespace FSpot {
 				// A bizarre pixbuf = hack to try to deal with cinematic displays, etc.
 				int preview_size = ((this.Screen.Width + this.Screen.Height)/2)/3;
 				try {
-					if (item is Photo)
-						pixbuf = FSpot.PhotoLoader.LoadAtMaxSize ((Photo)item, preview_size, preview_size);
-					else
-						pixbuf = PixbufUtils.LoadAtMaxSize (orig_path, preview_size, preview_size);
+					pixbuf = FSpot.PhotoLoader.LoadAtMaxSize (item, preview_size, preview_size);
 				} catch (Exception) {
 					pixbuf = null;
 				}



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]