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



commit 2712ea93f403e03e9396a37e48ed320491e3015c
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 1de4979..e1d88e3 100644
--- a/src/Core/Photo.cs
+++ b/src/Core/Photo.cs
@@ -273,7 +273,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]