[f-spot/cleanup-backend: 7/8] Replace usage of Photo to IBrowseableItem in ThumbnailCommand.cs
- From: Mike Gemünde <mgemuende src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [f-spot/cleanup-backend: 7/8] Replace usage of Photo to IBrowseableItem in ThumbnailCommand.cs
- Date: Fri, 9 Jul 2010 08:48:58 +0000 (UTC)
commit 3a25fec81fd1dd829b664bb7ba2616dbb3ed34e9
Author: Mike Gemünde <mike gemuende de>
Date: Tue Jul 6 15:56:23 2010 +0200
Replace usage of Photo to IBrowseableItem in ThumbnailCommand.cs
src/ThumbnailCommand.cs | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/src/ThumbnailCommand.cs b/src/ThumbnailCommand.cs
index 34a9756..5352037 100644
--- a/src/ThumbnailCommand.cs
+++ b/src/ThumbnailCommand.cs
@@ -13,7 +13,7 @@ public class ThumbnailCommand {
this.parent_window = parent_window;
}
- public bool Execute (Photo [] photos)
+ public bool Execute (IBrowsableItem [] photos)
{
ProgressDialog progress_dialog = null;
var loader = ThumbnailLoader.Default;
@@ -24,13 +24,13 @@ public class ThumbnailCommand {
}
int count = 0;
- foreach (Photo p in photos) {
+ foreach (IBrowsableItem photo in photos) {
if (progress_dialog != null
- && progress_dialog.Update (String.Format (Mono.Unix.Catalog.GetString ("Updating picture \"{0}\""), p.Name)))
+ && progress_dialog.Update (String.Format (Mono.Unix.Catalog.GetString ("Updating picture \"{0}\""), photo.Name)))
break;
- foreach (uint version_id in p.VersionIds) {
- loader.Request (p.VersionUri (version_id), ThumbnailSize.Large, 10);
+ foreach (IBrowsableItemVersion version in photo.Versions) {
+ loader.Request (version.Uri, ThumbnailSize.Large, 10);
}
count++;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]