Bug 171153: GNOME thumbnails work only for paths/files without spaces Other characters are also affected, we need to run the usual URI braindamage on this stuff Index: Tiles/TilePicture.cs =================================================================== RCS file: /cvs/gnome/beagle/Tiles/TilePicture.cs,v retrieving revision 1.16 diff -u -B -p -r1.16 TilePicture.cs --- Tiles/TilePicture.cs 13 Mar 2005 04:37:36 -0000 1.16 +++ Tiles/TilePicture.cs 1 Apr 2005 00:15:10 -0000 @@ -46,12 +46,12 @@ namespace Beagle.Tile { { base.PopulateTemplate (); - string thumbnail = Thumbnail.PathForUri (Hit.Uri.ToString (), ThumbnailSize.Normal); + string thumbnail = Thumbnail.PathForUri (BU.StringFu.PathToQuotedFileUri (Hit.Uri.LocalPath), ThumbnailSize.Normal); if (File.Exists (thumbnail)) - Template["Thumbnail"] = Images.GetHtmlSource (new Uri (thumbnail).ToString (), Hit.MimeType); + Template["Thumbnail"] = Images.GetHtmlSource (thumbnail, Hit.MimeType); else - Template["Thumbnail"] = Images.GetHtmlSource (Hit.Uri.ToString (), Hit.MimeType); + Template["Thumbnail"] = Images.GetHtmlSource (Hit.Uri.LocalPath, Hit.MimeType); } } }