f-spot r4666 - in trunk: . src/Platform/Gnome
- From: sdelcroix svn gnome org
- To: svn-commits-list gnome org
- Subject: f-spot r4666 - in trunk: . src/Platform/Gnome
- Date: Fri, 12 Dec 2008 12:58:00 +0000 (UTC)
Author: sdelcroix
Date: Fri Dec 12 12:58:00 2008
New Revision: 4666
URL: http://svn.gnome.org/viewvc/f-spot?rev=4666&view=rev
Log:
2008-12-12 Stephane Delcroix <sdelcroix novell com>
* Platform/Gnome/ThumbnailFactory.cs: no longer timeout on ThumbIsValid
for missing images
Modified:
trunk/ChangeLog
trunk/src/Platform/Gnome/ThumbnailFactory.cs
Modified: trunk/src/Platform/Gnome/ThumbnailFactory.cs
==============================================================================
--- trunk/src/Platform/Gnome/ThumbnailFactory.cs (original)
+++ trunk/src/Platform/Gnome/ThumbnailFactory.cs Fri Dec 12 12:58:00 2008
@@ -71,6 +71,8 @@
try {
GLib.File gfile = GLib.FileFactory.NewForUri (imageUri);
+ if (!gfile.Exists)
+ return true;
GLib.FileInfo info = gfile.QueryInfo ("time::modified", GLib.FileQueryInfoFlags.None, null);
DateTime mtime = Mono.Unix.Native.NativeConvert.ToDateTime ((long)info.GetAttributeULong ("time::modified"));
return ThumbnailIsValid (pixbuf, imageUri, mtime);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]