[f-spot/backend-cleanup: 7/8] Replace usage of Photo to IBrowseableItem in PreviewPopup.cs
- From: Mike Gemünde <mgemuende src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [f-spot/backend-cleanup: 7/8] Replace usage of Photo to IBrowseableItem in PreviewPopup.cs
- Date: Wed, 7 Jul 2010 06:45:19 +0000 (UTC)
commit e22313a87013301a9a3877a238710f232255bb5d
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 8c94eb1..b73e8ed 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]