[f-spot/mipmapped-loading] Remove thumbnails through the PhotoLoader.



commit e8f6e69c0a347d203663e0bff1c931b36a043c7c
Author: Ruben Vermeersch <ruben savanne be>
Date:   Sun Jun 20 14:35:54 2010 +0200

    Remove thumbnails through the PhotoLoader.

 src/Core/Photo.cs |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/Core/Photo.cs b/src/Core/Photo.cs
index b5e72c2..c195b75 100644
--- a/src/Core/Photo.cs
+++ b/src/Core/Photo.cs
@@ -274,7 +274,8 @@ namespace FSpot
 						file.Delete ();
 					}	
 				try {
-					XdgThumbnailSpec.RemoveThumbnail (uri);
+					var loader = App.Instance.Loaders.RequestLoader (versions [version_id]);
+					loader.ClearCache ();
 				} catch {
 					//ignore an error here we don't really care.
 				}



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