[f-spot] drop yet another Vfs reference
- From: Stephane Delcroix <sdelcroix src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [f-spot] drop yet another Vfs reference
- Date: Mon, 14 Sep 2009 20:10:41 +0000 (UTC)
commit 0f1defd385d5524565565a6c1042fe057f852401
Author: Stephane Delcroix <stephane delcroix org>
Date: Mon Sep 14 22:09:14 2009 +0200
drop yet another Vfs reference
src/ThumbnailGenerator.cs | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/src/ThumbnailGenerator.cs b/src/ThumbnailGenerator.cs
index 8837453..0ef6be7 100644
--- a/src/ThumbnailGenerator.cs
+++ b/src/ThumbnailGenerator.cs
@@ -12,6 +12,9 @@ using System.IO;
using FSpot.Utils;
using FSpot.Platform;
+using GFile = GLib.File;
+using GFileInfo = GLib.FileInfo;
+
namespace FSpot {
public class ThumbnailGenerator : ImageLoaderThread {
@@ -35,8 +38,9 @@ namespace FSpot {
return null;
try { //Setting the thumb options
- Gnome.Vfs.FileInfo vfs = new Gnome.Vfs.FileInfo (UriUtils.UriToStringEscaped (uri));
- DateTime mtime = vfs.Mtime;
+ GFile file = GLib.FileFactory.NewForUri (uri);
+ GFileInfo file_info = file.QueryInfo ("time::modified", GLib.FileQueryInfoFlags.None, null);
+ DateTime mtime = file_info.ModificationTime;
FSpot.Utils.PixbufUtils.SetOption (thumb, ThumbUri, UriUtils.UriToStringEscaped (uri));
FSpot.Utils.PixbufUtils.SetOption (thumb, ThumbMTime, ((uint)GLib.Marshaller.DateTimeTotime_t (mtime)).ToString ());
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]