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



commit 02e9e8e0f64c83c2c740ae62c8a166d2c2ef5331
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 7c1784b..3a071ab 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]